Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
29b69c54
Commit
29b69c54
authored
Aug 25, 2007
by
Alexander Nicolaysen Sørnes
Committed by
Alexandre Julliard
Aug 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notepad: Add program icon.
parent
881c204c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
2 deletions
+8
-2
dialog.c
programs/notepad/dialog.c
+2
-1
main.c
programs/notepad/main.c
+1
-1
notepad.ico
programs/notepad/notepad.ico
+0
-0
notepad_res.h
programs/notepad/notepad_res.h
+2
-0
rsrc.rc
programs/notepad/rsrc.rc
+3
-0
No files found.
programs/notepad/dialog.c
View file @
29b69c54
...
...
@@ -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
);
}
...
...
programs/notepad/main.c
View file @
29b69c54
...
...
@@ -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
);
...
...
programs/notepad/notepad.ico
0 → 100644
View file @
29b69c54
2.19 KB
programs/notepad/notepad_res.h
View file @
29b69c54
...
...
@@ -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
...
...
programs/notepad/rsrc.rc
View file @
29b69c54
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment