notepad: Set the window class small icon.

This commit is contained in:
Alexandre Julliard 2010-04-19 20:12:34 +02:00
parent a551dfe311
commit 4c917904ae

View file

@ -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);