use the netsurf icons on the window decoration

svn path=/trunk/netsurf/; revision=11635
This commit is contained in:
Vincent Sanders 2011-02-09 01:32:53 +00:00
parent 3c414e7668
commit f04cc9e9ec
3 changed files with 7 additions and 3 deletions

View File

@ -1646,12 +1646,12 @@ static void create_local_windows_classes(void) {
w.cbClsExtra = 0;
w.cbWndExtra = 0;
w.hInstance = hinstance;
w.hIcon = LoadIcon(NULL, IDI_APPLICATION); /* -> NetSurf */
w.hIcon = LoadIcon(hinstance, MAKEINTRESOURCE(NSWS_ID_NETSURF32_ICON)); /* -> NetSurf */
w.hCursor = NULL;
w.hbrBackground = (HBRUSH)(COLOR_MENU + 1);
w.lpszMenuName = NULL;
w.lpszClassName = windowclassname_main;
w.hIconSm = LoadIcon(NULL, IDI_APPLICATION); /* -> NetSurf */
w.hIconSm = LoadIcon(hinstance, MAKEINTRESOURCE(NSWS_ID_NETSURF16_ICON)); /* -> NetSurf */
RegisterClassEx(&w);
/* drawable area */

View File

@ -221,4 +221,5 @@ FONT 8, "MS Sans Serif"
//
// Icon resources
//
ID ICON "NetSurf32.ico"
NSWS_ID_NETSURF32_ICON ICON "NetSurf32.ico"
NSWS_ID_NETSURF16_ICON ICON "NetSurf16.ico"

View File

@ -23,6 +23,9 @@
#define IDC_STATIC (-1)
#endif
#define NSWS_ID_NETSURF32_ICON 10
#define NSWS_ID_NETSURF16_ICON 11
#define NSWS_ID_MAINMENU 101
#define NSWS_ID_CTXMENU 103
#define NSWS_ID_TOOLBAR_BITMAP 107