mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 13:44:24 +00:00
notepad: Set the window class small icon.
This commit is contained in:
parent
a551dfe311
commit
4c917904ae
|
@ -743,6 +743,9 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
|
||||||
class.lpfnWndProc = NOTEPAD_WndProc;
|
class.lpfnWndProc = NOTEPAD_WndProc;
|
||||||
class.hInstance = Globals.hInstance;
|
class.hInstance = Globals.hInstance;
|
||||||
class.hIcon = LoadIconW(Globals.hInstance, MAKEINTRESOURCEW(IDI_NOTEPAD));
|
class.hIcon = LoadIconW(Globals.hInstance, MAKEINTRESOURCEW(IDI_NOTEPAD));
|
||||||
|
class.hIconSm = LoadImageW(Globals.hInstance, MAKEINTRESOURCEW(IDI_NOTEPAD), IMAGE_ICON,
|
||||||
|
GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON),
|
||||||
|
LR_SHARED);
|
||||||
class.hCursor = LoadCursorW(0, (LPCWSTR)IDC_ARROW);
|
class.hCursor = LoadCursorW(0, (LPCWSTR)IDC_ARROW);
|
||||||
class.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
|
class.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
|
||||||
class.lpszMenuName = MAKEINTRESOURCEW(MAIN_MENU);
|
class.lpszMenuName = MAKEINTRESOURCEW(MAIN_MENU);
|
||||||
|
|
Loading…
Reference in a new issue