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
dc63061a
Commit
dc63061a
authored
May 15, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
May 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use MSGBOX_IDICON throughout instead of sometimes using stc1 and sometimes 1088.
parent
a006296d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
msgbox.c
dlls/user32/msgbox.c
+6
-6
No files found.
dlls/user32/msgbox.c
View file @
dc63061a
...
...
@@ -33,7 +33,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dialog
);
WINE_DECLARE_DEBUG_CHANNEL
(
msgbox
);
#define MSGBOX_IDICON
1088
#define MSGBOX_IDICON
stc1
#define MSGBOX_IDTEXT 100
#define IDS_ERROR 2
...
...
@@ -175,23 +175,23 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
/* Set the icon */
switch
(
lpmb
->
dwStyle
&
MB_ICONMASK
)
{
case
MB_ICONEXCLAMATION
:
SendDlgItemMessageW
(
hwnd
,
stc1
,
STM_SETICON
,
SendDlgItemMessageW
(
hwnd
,
MSGBOX_IDICON
,
STM_SETICON
,
(
WPARAM
)
LoadIconW
(
0
,
(
LPWSTR
)
IDI_EXCLAMATION
),
0
);
break
;
case
MB_ICONQUESTION
:
SendDlgItemMessageW
(
hwnd
,
stc1
,
STM_SETICON
,
SendDlgItemMessageW
(
hwnd
,
MSGBOX_IDICON
,
STM_SETICON
,
(
WPARAM
)
LoadIconW
(
0
,
(
LPWSTR
)
IDI_QUESTION
),
0
);
break
;
case
MB_ICONASTERISK
:
SendDlgItemMessageW
(
hwnd
,
stc1
,
STM_SETICON
,
SendDlgItemMessageW
(
hwnd
,
MSGBOX_IDICON
,
STM_SETICON
,
(
WPARAM
)
LoadIconW
(
0
,
(
LPWSTR
)
IDI_ASTERISK
),
0
);
break
;
case
MB_ICONHAND
:
SendDlgItemMessageW
(
hwnd
,
stc1
,
STM_SETICON
,
SendDlgItemMessageW
(
hwnd
,
MSGBOX_IDICON
,
STM_SETICON
,
(
WPARAM
)
LoadIconW
(
0
,
(
LPWSTR
)
IDI_HAND
),
0
);
break
;
case
MB_USERICON
:
SendDlgItemMessageW
(
hwnd
,
stc1
,
STM_SETICON
,
SendDlgItemMessageW
(
hwnd
,
MSGBOX_IDICON
,
STM_SETICON
,
(
WPARAM
)
LoadIconW
(
lpmb
->
hInstance
,
lpmb
->
lpszIcon
),
0
);
break
;
default:
...
...
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