Alexandre Julliard : notepad: Set the window class small icon.
Alexandre Julliard
julliard at winehq.org
Tue Apr 20 11:32:20 CDT 2010
Module: wine
Branch: master
Commit: 4c917904aeaa51290d5b71aebd79005ddcaeab42
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4c917904aeaa51290d5b71aebd79005ddcaeab42
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Apr 19 20:12:34 2010 +0200
notepad: Set the window class small icon.
---
programs/notepad/main.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/programs/notepad/main.c b/programs/notepad/main.c
index 1ddd95c..841da37 100644
--- a/programs/notepad/main.c
+++ b/programs/notepad/main.c
@@ -743,6 +743,9 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
class.lpfnWndProc = NOTEPAD_WndProc;
class.hInstance = Globals.hInstance;
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.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
class.lpszMenuName = MAKEINTRESOURCEW(MAIN_MENU);
More information about the wine-cvs
mailing list