Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
f706c68c
Commit
f706c68c
authored
May 18, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
May 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
notepad: Use the more specific MAKEINTRESOURCEW macro.
parent
69365793
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
dialog.c
programs/notepad/dialog.c
+4
-4
main.c
programs/notepad/main.c
+4
-4
No files found.
programs/notepad/dialog.c
View file @
f706c68c
...
...
@@ -798,8 +798,8 @@ VOID DIALOG_HelpAboutNotepad(VOID)
{
static
const
WCHAR
notepadW
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'N'
,
'o'
,
't'
,
'e'
,
'p'
,
'a'
,
'd'
,
0
};
WCHAR
szNotepad
[
MAX_STRING_LEN
];
HICON
icon
=
LoadImageW
(
Globals
.
hInstance
,
MAKEINTRESOURCE
(
IDI_NOTEPAD
),
IMAGE_ICON
,
48
,
48
,
LR_SHARED
);
HICON
icon
=
LoadImageW
(
Globals
.
hInstance
,
MAKEINTRESOURCEW
(
IDI_NOTEPAD
),
IMAGE_ICON
,
48
,
48
,
LR_SHARED
);
LoadString
(
Globals
.
hInstance
,
STRING_NOTEPAD
,
szNotepad
,
SIZEOF
(
szNotepad
));
ShellAbout
(
Globals
.
hMainWnd
,
szNotepad
,
notepadW
,
icon
);
...
...
@@ -812,8 +812,8 @@ VOID DIALOG_HelpAboutNotepad(VOID)
*/
VOID
DIALOG_FilePageSetup
(
void
)
{
DialogBox
(
Globals
.
hInstance
,
MAKEINTRESOURCE
(
DIALOG_PAGESETUP
),
Globals
.
hMainWnd
,
DIALOG_PAGESETUP_DlgProc
);
DialogBoxW
(
Globals
.
hInstance
,
MAKEINTRESOURCEW
(
DIALOG_PAGESETUP
),
Globals
.
hMainWnd
,
DIALOG_PAGESETUP_DlgProc
);
}
...
...
programs/notepad/main.c
View file @
f706c68c
...
...
@@ -736,10 +736,10 @@ 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
(
Globals
.
hInstance
,
MAKEINTRESOURCE
(
IDI_NOTEPAD
));
class
.
hCursor
=
LoadCursor
(
0
,
IDC_ARROW
);
class
.
hIcon
=
LoadIcon
W
(
Globals
.
hInstance
,
MAKEINTRESOURCEW
(
IDI_NOTEPAD
));
class
.
hCursor
=
LoadCursor
W
(
0
,
(
LPCWSTR
)
IDC_ARROW
);
class
.
hbrBackground
=
(
HBRUSH
)(
COLOR_WINDOW
+
1
);
class
.
lpszMenuName
=
MAKEINTRESOURCE
(
MAIN_MENU
);
class
.
lpszMenuName
=
MAKEINTRESOURCE
W
(
MAIN_MENU
);
class
.
lpszClassName
=
className
;
if
(
!
RegisterClassEx
(
&
class
))
return
FALSE
;
...
...
@@ -777,7 +777,7 @@ int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE prev, LPSTR cmdline, int show)
HandleCommandLine
(
GetCommandLine
());
hAccel
=
LoadAccelerators
(
hInstance
,
MAKEINTRESOURCE
(
ID_ACCEL
)
);
hAccel
=
LoadAccelerators
W
(
hInstance
,
MAKEINTRESOURCEW
(
ID_ACCEL
)
);
while
(
GetMessage
(
&
msg
,
0
,
0
,
0
))
{
...
...
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