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
8d127f3a
Commit
8d127f3a
authored
Feb 02, 2010
by
Bernhard Übelacker
Committed by
Alexandre Julliard
Feb 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Don't hide the window in SetParent when window and parent are equal.
parent
b184b13c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
win.c
dlls/user32/tests/win.c
+6
-0
win.c
dlls/user32/win.c
+6
-0
No files found.
dlls/user32/tests/win.c
View file @
8d127f3a
...
...
@@ -445,6 +445,12 @@ static void test_parent_owner(void)
ret
=
SetParent
(
test
,
child
);
ok
(
ret
==
desktop
,
"SetParent return value %p expected %p
\n
"
,
ret
,
desktop
);
check_parents
(
test
,
child
,
child
,
0
,
0
,
hwndMain
,
test
);
ShowWindow
(
test
,
SW_SHOW
);
ret
=
SetParent
(
test
,
test
);
ok
(
ret
==
NULL
,
"SetParent return value %p expected %p
\n
"
,
ret
,
NULL
);
ok
(
GetWindowLongA
(
test
,
GWL_STYLE
)
&
WS_VISIBLE
,
"window is not visible after SetParent
\n
"
);
check_parents
(
test
,
child
,
child
,
0
,
0
,
hwndMain
,
test
);
DestroyWindow
(
test
);
/* owned popup */
...
...
dlls/user32/win.c
View file @
8d127f3a
...
...
@@ -2701,6 +2701,12 @@ HWND WINAPI SetParent( HWND hwnd, HWND parent )
if
(
!
(
full_handle
=
WIN_IsCurrentThread
(
hwnd
)))
return
(
HWND
)
SendMessageW
(
hwnd
,
WM_WINE_SETPARENT
,
(
WPARAM
)
parent
,
0
);
if
(
full_handle
==
parent
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
0
;
}
/* Windows hides the window first, then shows it again
* including the WM_SHOWWINDOW messages and all */
was_visible
=
ShowWindow
(
hwnd
,
SW_HIDE
);
...
...
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