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
b34c2163
Commit
b34c2163
authored
Aug 29, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Aug 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/msgbox: Implement MB_TOPMOST.
parent
adf77c1a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
msgbox.c
dlls/user32/msgbox.c
+4
-2
dialog.c
dlls/user32/tests/dialog.c
+1
-2
No files found.
dlls/user32/msgbox.c
View file @
b34c2163
...
@@ -110,10 +110,12 @@ static void MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
...
@@ -110,10 +110,12 @@ static void MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
}
}
/* handle modal message boxes */
/* handle modal message boxes */
if
(
((
lpmb
->
dwStyle
&
MB_TASKMODAL
)
&&
(
lpmb
->
hwndOwner
==
NULL
))
)
if
(
lpmb
->
dwStyle
&
MB_TASKMODAL
&&
lpmb
->
hwndOwner
==
NULL
)
NtUserSetWindowPos
(
hwnd
,
HWND_TOP
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
NtUserSetWindowPos
(
hwnd
,
lpmb
->
dwStyle
&
MB_TOPMOST
?
HWND_TOPMOST
:
HWND_TOP
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
);
else
if
(
lpmb
->
dwStyle
&
MB_SYSTEMMODAL
)
else
if
(
lpmb
->
dwStyle
&
MB_SYSTEMMODAL
)
NtUserSetWindowPos
(
hwnd
,
HWND_TOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
|
SWP_FRAMECHANGED
);
NtUserSetWindowPos
(
hwnd
,
HWND_TOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
|
SWP_FRAMECHANGED
);
else
if
(
lpmb
->
dwStyle
&
MB_TOPMOST
)
NtUserSetWindowPos
(
hwnd
,
HWND_TOPMOST
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
);
TRACE_
(
msgbox
)(
"%s
\n
"
,
debugstr_w
(
lpszText
));
TRACE_
(
msgbox
)(
"%s
\n
"
,
debugstr_w
(
lpszText
));
SetWindowTextW
(
GetDlgItem
(
hwnd
,
MSGBOX_IDTEXT
),
lpszText
);
SetWindowTextW
(
GetDlgItem
(
hwnd
,
MSGBOX_IDTEXT
),
lpszText
);
...
...
dlls/user32/tests/dialog.c
View file @
b34c2163
...
@@ -2149,8 +2149,7 @@ static LRESULT CALLBACK msgbox_hook_proc(INT code, WPARAM wParam, LPARAM lParam)
...
@@ -2149,8 +2149,7 @@ static LRESULT CALLBACK msgbox_hook_proc(INT code, WPARAM wParam, LPARAM lParam)
if
(
!
system_modal
)
if
(
!
system_modal
)
expected_exstyles
|=
WS_EX_DLGMODALFRAME
;
expected_exstyles
|=
WS_EX_DLGMODALFRAME
;
todo_wine_if
((
system_modal
&&
exstyles
==
(
expected_exstyles
|
WS_EX_DLGMODALFRAME
))
todo_wine_if
(
system_modal
&&
exstyles
==
(
expected_exstyles
|
WS_EX_DLGMODALFRAME
))
||
(
!
system_modal
&&
msgbox_type
&
MB_TOPMOST
))
ok
(
exstyles
==
expected_exstyles
,
"got %#lx, expected %#lx
\n
"
,
exstyles
,
expected_exstyles
);
ok
(
exstyles
==
expected_exstyles
,
"got %#lx, expected %#lx
\n
"
,
exstyles
,
expected_exstyles
);
text
[
0
]
=
0
;
text
[
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