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
0c24f2b8
Commit
0c24f2b8
authored
Nov 08, 2022
by
Santino Mazza
Committed by
Alexandre Julliard
Nov 10, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/msgbox: Implement MB_SYSTEMMODAL.
parent
18b5cc5e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
msgbox.c
dlls/user32/msgbox.c
+6
-4
dialog.c
dlls/user32/tests/dialog.c
+1
-1
No files found.
dlls/user32/msgbox.c
View file @
0c24f2b8
...
...
@@ -109,6 +109,12 @@ static void MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
lpszText
=
lpmb
->
lpszText
;
}
/* handle modal message boxes */
if
(((
lpmb
->
dwStyle
&
MB_TASKMODAL
)
&&
(
lpmb
->
hwndOwner
==
NULL
)))
NtUserSetWindowPos
(
hwnd
,
HWND_TOP
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
else
if
(
lpmb
->
dwStyle
&
MB_SYSTEMMODAL
)
NtUserSetWindowPos
(
hwnd
,
HWND_TOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
|
SWP_FRAMECHANGED
);
TRACE_
(
msgbox
)(
"%s
\n
"
,
debugstr_w
(
lpszText
));
SetWindowTextW
(
GetDlgItem
(
hwnd
,
MSGBOX_IDTEXT
),
lpszText
);
...
...
@@ -309,10 +315,6 @@ static void MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
}
}
/*handle modal message boxes*/
if
(((
lpmb
->
dwStyle
&
MB_TASKMODAL
)
&&
(
lpmb
->
hwndOwner
==
NULL
))
||
(
lpmb
->
dwStyle
&
MB_SYSTEMMODAL
))
NtUserSetWindowPos
(
hwnd
,
HWND_TOP
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
HeapFree
(
GetProcessHeap
(),
0
,
buffer
);
}
...
...
dlls/user32/tests/dialog.c
View file @
0c24f2b8
...
...
@@ -2160,7 +2160,7 @@ static LRESULT CALLBACK msgbox_sysmodal_hook_proc(INT code, WPARAM wParam, LPARA
if
(
msgbox
)
{
todo_wine
ok
(
exstyles
&
WS_EX_TOPMOST
,
"expected message box to have topmost exstyle set
\n
"
);
ok
(
exstyles
&
WS_EX_TOPMOST
,
"expected message box to have topmost exstyle set
\n
"
);
SendDlgItemMessageA
(
msgbox
,
IDCANCEL
,
WM_LBUTTONDOWN
,
0
,
0
);
SendDlgItemMessageA
(
msgbox
,
IDCANCEL
,
WM_LBUTTONUP
,
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