Alexandre Julliard : taskmgr: Set the window small icon.

Alexandre Julliard julliard at winehq.org
Tue Apr 20 11:32:20 CDT 2010


Module: wine
Branch: master
Commit: 80997b2f05c3f2917893983b65865cb93c3feca0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=80997b2f05c3f2917893983b65865cb93c3feca0

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Apr 19 20:12:39 2010 +0200

taskmgr: Set the window small icon.

---

 programs/taskmgr/taskmgr.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/programs/taskmgr/taskmgr.c b/programs/taskmgr/taskmgr.c
index 01c6926..5958d5c 100644
--- a/programs/taskmgr/taskmgr.c
+++ b/programs/taskmgr/taskmgr.c
@@ -131,6 +131,10 @@ static BOOL OnCreate(HWND hWnd)
     LoadStringW(hInst, IDS_PERFORMANCE, wszPerformance, sizeof(wszPerformance)/sizeof(WCHAR));
 
     SendMessageW(hMainWnd, WM_SETICON, ICON_BIG, (LPARAM)LoadIcon(hInst, MAKEINTRESOURCE(IDI_TASKMANAGER)));
+    SendMessageW(hMainWnd, WM_SETICON, ICON_SMALL,
+                 (LPARAM)LoadImage(hInst, MAKEINTRESOURCE(IDI_TASKMANAGER), IMAGE_ICON,
+                                   GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON),
+                                   LR_SHARED));
 
     /* Initialize the Windows Common Controls DLL */
     InitCommonControls();




More information about the wine-cvs mailing list