Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
1abbe0df
Commit
1abbe0df
authored
16 years ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
user32: Use the top-level message window as parent for HWND_MESSAGE windows.
parent
966cf7c8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/user32/win.c
+16
-5
16 additions, 5 deletions
dlls/user32/win.c
with
16 additions
and
5 deletions
dlls/user32/win.c
+
16
−
5
View file @
1abbe0df
...
...
@@ -357,6 +357,20 @@ static void get_server_window_text( HWND hwnd, LPWSTR text, INT count )
}
/*******************************************************************
* get_hwnd_message_parent
*
* Return the parent for HWND_MESSAGE windows.
*/
static
HWND
get_hwnd_message_parent
(
void
)
{
struct
user_thread_info
*
thread_info
=
get_user_thread_info
();
if
(
!
thread_info
->
msg_window
)
GetDesktopWindow
();
/* trigger creation */
return
thread_info
->
msg_window
;
}
/***********************************************************************
* WIN_GetPtr
*
...
...
@@ -969,11 +983,7 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, LPCWSTR className, UINT flags
if
(
cs
->
hwndParent
==
HWND_MESSAGE
)
{
/* native ole32.OleInitialize uses HWND_MESSAGE to create the
* message window (style: WS_POPUP|WS_DISABLED)
*/
FIXME
(
"Parent is HWND_MESSAGE
\n
"
);
parent
=
GetDesktopWindow
();
cs
->
hwndParent
=
parent
=
get_hwnd_message_parent
();
}
else
if
(
cs
->
hwndParent
)
{
...
...
@@ -2630,6 +2640,7 @@ HWND WINAPI SetParent( HWND hwnd, HWND parent )
}
if
(
!
parent
)
parent
=
GetDesktopWindow
();
else
if
(
parent
==
HWND_MESSAGE
)
parent
=
get_hwnd_message_parent
();
else
parent
=
WIN_GetFullHandle
(
parent
);
if
(
!
IsWindow
(
parent
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment