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
217fe9cf
Commit
217fe9cf
authored
Oct 12, 2015
by
Joachim Priesner
Committed by
Alexandre Julliard
Oct 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: msgbox: Make buttons an own control group.
Signed-off-by:
Joachim Priesner
<
joachim.priesner@web.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e0a7021e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
msgbox.c
dlls/user32/msgbox.c
+10
-1
user32.rc
dlls/user32/user32.rc
+1
-1
No files found.
dlls/user32/msgbox.c
View file @
217fe9cf
...
...
@@ -115,12 +115,14 @@ static void MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
TRACE_
(
msgbox
)(
"%s
\n
"
,
debugstr_w
(
lpszText
));
SetWindowTextW
(
GetDlgItem
(
hwnd
,
MSGBOX_IDTEXT
),
lpszText
);
/* Remove not selected buttons */
/* Remove not selected buttons and assign the WS_GROUP style to the first button */
hItem
=
0
;
switch
(
lpmb
->
dwStyle
&
MB_TYPEMASK
)
{
case
MB_OK
:
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDCANCEL
));
/* fall through */
case
MB_OKCANCEL
:
hItem
=
GetDlgItem
(
hwnd
,
IDOK
);
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDABORT
));
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDRETRY
));
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDIGNORE
));
...
...
@@ -130,6 +132,7 @@ static void MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDCONTINUE
));
break
;
case
MB_ABORTRETRYIGNORE
:
hItem
=
GetDlgItem
(
hwnd
,
IDABORT
);
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDOK
));
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDCANCEL
));
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDYES
));
...
...
@@ -141,6 +144,7 @@ static void MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDCANCEL
));
/* fall through */
case
MB_YESNOCANCEL
:
hItem
=
GetDlgItem
(
hwnd
,
IDYES
);
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDOK
));
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDABORT
));
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDRETRY
));
...
...
@@ -149,6 +153,7 @@ static void MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDTRYAGAIN
));
break
;
case
MB_RETRYCANCEL
:
hItem
=
GetDlgItem
(
hwnd
,
IDRETRY
);
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDOK
));
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDABORT
));
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDIGNORE
));
...
...
@@ -158,6 +163,7 @@ static void MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDTRYAGAIN
));
break
;
case
MB_CANCELTRYCONTINUE
:
hItem
=
GetDlgItem
(
hwnd
,
IDCANCEL
);
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDOK
));
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDABORT
));
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDIGNORE
));
...
...
@@ -165,6 +171,9 @@ static void MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDNO
));
DestroyWindow
(
GetDlgItem
(
hwnd
,
IDRETRY
));
}
if
(
hItem
)
SetWindowLongW
(
hItem
,
GWL_STYLE
,
GetWindowLongW
(
hItem
,
GWL_STYLE
)
|
WS_GROUP
);
/* Set the icon */
switch
(
lpmb
->
dwStyle
&
MB_ICONMASK
)
{
case
MB_ICONEXCLAMATION
:
...
...
dlls/user32/user32.rc
View file @
217fe9cf
...
...
@@ -75,7 +75,6 @@ MSGBOX DIALOG 100, 80, 216, 168
STYLE DS_MODALFRAME | DS_NOIDLEMSG | DS_SETFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
BEGIN
ICON "", MSGBOX_IDICON, 8, 20, 16, 16, WS_CHILD | WS_VISIBLE
LTEXT "", MSGBOX_IDTEXT, 32, 4, 176, 48, WS_CHILD | WS_VISIBLE | WS_GROUP | SS_NOPREFIX
PUSHBUTTON "OK", IDOK, 16, 56, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
PUSHBUTTON "Cancel", IDCANCEL, 74, 56, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
PUSHBUTTON "&Abort", IDABORT, 132, 56, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
...
...
@@ -86,6 +85,7 @@ BEGIN
PUSHBUTTON "&Try Again", IDTRYAGAIN, 422, 56, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
PUSHBUTTON "&Continue", IDCONTINUE, 480, 56, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
PUSHBUTTON "Help", IDHELP, 538, 56, 50, 14, WS_CHILD | WS_VISIBLE | WS_TABSTOP
LTEXT "", MSGBOX_IDTEXT, 32, 4, 176, 48, WS_CHILD | WS_VISIBLE | WS_GROUP | SS_NOPREFIX
END
MDI_MOREWINDOWS DIALOG 20, 20, 232, 122
...
...
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