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
1abbe0df
Commit
1abbe0df
authored
Jun 25, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use the top-level message window as parent for HWND_MESSAGE windows.
parent
966cf7c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
win.c
dlls/user32/win.c
+16
-5
No files found.
dlls/user32/win.c
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
))
...
...
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