[FONTVIEW]
authorDaniel Reimer <reimer.daniel@freenet.de>
Wed, 15 Jan 2014 23:09:46 +0000 (23:09 +0000)
committerDaniel Reimer <reimer.daniel@freenet.de>
Wed, 15 Jan 2014 23:09:46 +0000 (23:09 +0000)
fontview - Add icon to main window by Lee Schroeder
CORE-7400 #resolve

svn path=/trunk/; revision=61636

reactos/base/applications/fontview/fontview.c
reactos/base/applications/fontview/resource.h

index 16adf37..fd3f844 100644 (file)
@@ -197,12 +197,12 @@ WinMain (HINSTANCE hThisInstance,
        wincl.cbClsExtra = 0;
        wincl.cbWndExtra = 0;
        wincl.hInstance = hThisInstance;
        wincl.cbClsExtra = 0;
        wincl.cbWndExtra = 0;
        wincl.hInstance = hThisInstance;
-       wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION);
+       wincl.hIcon = LoadIcon (GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_TT));
        wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
        wincl.hbrBackground = (HBRUSH)COLOR_BACKGROUND;
        wincl.lpszMenuName = NULL;
        wincl.lpszClassName = g_szFontViewClassName;
        wincl.hCursor = LoadCursor (NULL, IDC_ARROW);
        wincl.hbrBackground = (HBRUSH)COLOR_BACKGROUND;
        wincl.lpszMenuName = NULL;
        wincl.lpszClassName = g_szFontViewClassName;
-       wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION);
+       wincl.hIconSm = LoadIcon (GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_TT));
 
        /* Register the window class, and if it fails quit the program */
        if (!RegisterClassExW (&wincl))
 
        /* Register the window class, and if it fails quit the program */
        if (!RegisterClassExW (&wincl))
index d4d6b98..417a289 100644 (file)
@@ -13,3 +13,5 @@
 #define IDS_CHARSLOWER   700
 #define IDS_CHARSUPPER   701
 #define IDS_SPECIALCHARS 702
 #define IDS_CHARSLOWER   700
 #define IDS_CHARSUPPER   701
 #define IDS_SPECIALCHARS 702
+
+#define IDI_TT 800