notepad: Add program icon.
This commit is contained in:
parent
881c204c02
commit
29b69c54b0
|
@ -791,9 +791,10 @@ VOID DIALOG_HelpAboutWine(VOID)
|
|||
{
|
||||
static const WCHAR notepadW[] = { 'N','o','t','e','p','a','d','\n',0 };
|
||||
WCHAR szNotepad[MAX_STRING_LEN];
|
||||
HICON icon = LoadIcon(Globals.hInstance, MAKEINTRESOURCE(IDI_NOTEPAD));
|
||||
|
||||
LoadString(Globals.hInstance, STRING_NOTEPAD, szNotepad, SIZEOF(szNotepad));
|
||||
ShellAbout(Globals.hMainWnd, szNotepad, notepadW, 0);
|
||||
ShellAbout(Globals.hMainWnd, szNotepad, notepadW, icon);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -647,7 +647,7 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
|
|||
class.cbSize = sizeof(class);
|
||||
class.lpfnWndProc = NOTEPAD_WndProc;
|
||||
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.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
|
||||
class.lpszMenuName = MAKEINTRESOURCE(MAIN_MENU);
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
|
@ -23,6 +23,8 @@
|
|||
#define DIALOG_PAGESETUP 0x202
|
||||
#define ID_ACCEL 0x203
|
||||
|
||||
#define IDI_NOTEPAD 0x300
|
||||
|
||||
/* Commands */
|
||||
#define CMD_NEW 0x100
|
||||
#define CMD_OPEN 0x101
|
||||
|
|
|
@ -44,6 +44,9 @@ ID_ACCEL ACCELERATORS
|
|||
VK_INSERT, CMD_PASTE, VIRTKEY, SHIFT
|
||||
}
|
||||
|
||||
/* @makedep: notepad.ico */
|
||||
IDI_NOTEPAD ICON "notepad.ico"
|
||||
|
||||
#include "Bg.rc"
|
||||
#include "Cs.rc"
|
||||
#include "Da.rc"
|
||||
|
|
Loading…
Reference in New Issue