Alexandre Julliard : winemine: Set the window class small icon.
Alexandre Julliard
julliard at winehq.org
Tue Apr 20 11:32:20 CDT 2010
Module: wine
Branch: master
Commit: 099890106c3a6672565dd3f6fc27753ac6cde236
URL: http://source.winehq.org/git/wine.git/?a=commit;h=099890106c3a6672565dd3f6fc27753ac6cde236
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Apr 19 20:12:51 2010 +0200
winemine: Set the window class small icon.
---
programs/winemine/main.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/programs/winemine/main.c b/programs/winemine/main.c
index be544e8..582f2cb 100644
--- a/programs/winemine/main.c
+++ b/programs/winemine/main.c
@@ -1008,7 +1008,7 @@ static LRESULT WINAPI MainProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPara
int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmdshow )
{
MSG msg;
- WNDCLASS wc;
+ WNDCLASSEX wc;
HWND hWnd;
HACCEL haccel;
char appname[20];
@@ -1025,8 +1025,10 @@ int WINAPI WinMain( HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdline, int cmd
wc.hbrBackground = GetStockObject( BLACK_BRUSH );
wc.lpszMenuName = "MENU_WINEMINE";
wc.lpszClassName = appname;
+ wc.hIconSm = LoadImage( hInst, "WINEMINE", IMAGE_ICON,
+ GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), LR_SHARED );
- if (!RegisterClass(&wc)) ExitProcess(1);
+ if (!RegisterClassEx(&wc)) ExitProcess(1);
hWnd = CreateWindow( appname, appname,
wnd_style,
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
More information about the wine-cvs
mailing list