Commit 29b69c54 authored by Alexander Nicolaysen Sørnes's avatar Alexander Nicolaysen Sørnes Committed by Alexandre Julliard

notepad: Add program icon.

parent 881c204c
......@@ -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);
......
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment