winemine: Set the window class small icon.

oldstable
Alexandre Julliard 2010-04-19 20:12:51 +02:00
parent 80997b2f05
commit 099890106c
1 changed files with 4 additions and 2 deletions

View File

@ -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,