notepad: Add program icon.

This commit is contained in:
Alexander Nicolaysen Sørnes 2007-08-25 18:26:15 +02:00 committed by Alexandre Julliard
parent 881c204c02
commit 29b69c54b0
5 changed files with 8 additions and 2 deletions

View file

@ -791,9 +791,10 @@ VOID DIALOG_HelpAboutWine(VOID)
{ {
static const WCHAR notepadW[] = { 'N','o','t','e','p','a','d','\n',0 }; static const WCHAR notepadW[] = { 'N','o','t','e','p','a','d','\n',0 };
WCHAR szNotepad[MAX_STRING_LEN]; WCHAR szNotepad[MAX_STRING_LEN];
HICON icon = LoadIcon(Globals.hInstance, MAKEINTRESOURCE(IDI_NOTEPAD));
LoadString(Globals.hInstance, STRING_NOTEPAD, szNotepad, SIZEOF(szNotepad)); LoadString(Globals.hInstance, STRING_NOTEPAD, szNotepad, SIZEOF(szNotepad));
ShellAbout(Globals.hMainWnd, szNotepad, notepadW, 0); ShellAbout(Globals.hMainWnd, szNotepad, notepadW, icon);
} }

View file

@ -647,7 +647,7 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
class.cbSize = sizeof(class); class.cbSize = sizeof(class);
class.lpfnWndProc = NOTEPAD_WndProc; class.lpfnWndProc = NOTEPAD_WndProc;
class.hInstance = Globals.hInstance; class.hInstance = Globals.hInstance;
class.hIcon = LoadIcon(0, IDI_APPLICATION); class.hIcon = LoadIcon(Globals.hInstance, MAKEINTRESOURCE(IDI_NOTEPAD));
class.hCursor = LoadCursor(0, IDC_ARROW); class.hCursor = LoadCursor(0, IDC_ARROW);
class.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1); class.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
class.lpszMenuName = MAKEINTRESOURCE(MAIN_MENU); class.lpszMenuName = MAKEINTRESOURCE(MAIN_MENU);

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -23,6 +23,8 @@
#define DIALOG_PAGESETUP 0x202 #define DIALOG_PAGESETUP 0x202
#define ID_ACCEL 0x203 #define ID_ACCEL 0x203
#define IDI_NOTEPAD 0x300
/* Commands */ /* Commands */
#define CMD_NEW 0x100 #define CMD_NEW 0x100
#define CMD_OPEN 0x101 #define CMD_OPEN 0x101

View file

@ -44,6 +44,9 @@ ID_ACCEL ACCELERATORS
VK_INSERT, CMD_PASTE, VIRTKEY, SHIFT VK_INSERT, CMD_PASTE, VIRTKEY, SHIFT
} }
/* @makedep: notepad.ico */
IDI_NOTEPAD ICON "notepad.ico"
#include "Bg.rc" #include "Bg.rc"
#include "Cs.rc" #include "Cs.rc"
#include "Da.rc" #include "Da.rc"