mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
winemine: Set the window class small icon.
This commit is contained in:
parent
80997b2f05
commit
099890106c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user