Alexandre Julliard : winetest: Set the window small icon.
Module: wine Branch: master Commit: 5b32b11e106a41d292f96ac9d82b340268c3e2d5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=5b32b11e106a41d292f96ac9d8... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Apr 19 20:12:57 2010 +0200 winetest: Set the window small icon. --- programs/winetest/gui.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/programs/winetest/gui.c b/programs/winetest/gui.c index f13cc18..45b3232 100644 --- a/programs/winetest/gui.c +++ b/programs/winetest/gui.c @@ -433,8 +433,9 @@ DlgProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) switch (msg) { case WM_INITDIALOG: SendMessage (hwnd, WM_SETICON, ICON_SMALL, - (LPARAM)LoadIcon (GetModuleHandle (NULL), - MAKEINTRESOURCE (IDI_WINE))); + (LPARAM)LoadImage( GetModuleHandle (NULL), MAKEINTRESOURCE (IDI_WINE), IMAGE_ICON, + GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), + LR_SHARED )); SendMessage (hwnd, WM_SETICON, ICON_BIG, (LPARAM)LoadIcon (GetModuleHandle (NULL), MAKEINTRESOURCE (IDI_WINE)));
participants (1)
-
Alexandre Julliard