From 099890106c3a6672565dd3f6fc27753ac6cde236 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 19 Apr 2010 20:12:51 +0200 Subject: [PATCH] winemine: Set the window class small icon. --- programs/winemine/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/programs/winemine/main.c b/programs/winemine/main.c index be544e8f9ce..582f2cbd8bf 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,