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
1cf3d8ca
Commit
1cf3d8ca
authored
Mar 26, 2014
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 26, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Change SetFocus behavior on windows with parent and no WS_CHILD flag.
parent
b816a8e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
focus.c
dlls/user32/focus.c
+1
-0
win.c
dlls/user32/tests/win.c
+19
-0
No files found.
dlls/user32/focus.c
View file @
1cf3d8ca
...
...
@@ -277,6 +277,7 @@ HWND WINAPI SetFocus( HWND hwnd )
HWND
parent
;
LONG
style
=
GetWindowLongW
(
hwndTop
,
GWL_STYLE
);
if
(
style
&
(
WS_MINIMIZE
|
WS_DISABLED
))
return
0
;
if
(
!
(
style
&
WS_CHILD
))
break
;
parent
=
GetAncestor
(
hwndTop
,
GA_PARENT
);
if
(
!
parent
||
parent
==
GetDesktopWindow
())
{
...
...
dlls/user32/tests/win.c
View file @
1cf3d8ca
...
...
@@ -3724,6 +3724,25 @@ todo_wine
check_active_state
(
popup
,
0
,
popup
);
SetActiveWindow
(
parent
);
SetFocus
(
popup
);
check_active_state
(
popup
,
0
,
popup
);
EnableWindow
(
child1
,
FALSE
);
check_active_state
(
popup
,
0
,
popup
);
SetFocus
(
parent
);
check_active_state
(
parent
,
0
,
parent
);
SetFocus
(
popup
);
check_active_state
(
popup
,
0
,
popup
);
EnableWindow
(
child1
,
TRUE
);
ShowWindow
(
child1
,
SW_MINIMIZE
);
SetFocus
(
parent
);
check_active_state
(
parent
,
0
,
parent
);
SetFocus
(
popup
);
check_active_state
(
popup
,
0
,
popup
);
ShowWindow
(
child1
,
SW_HIDE
);
SetActiveWindow
(
parent
);
SetFocus
(
parent
);
check_active_state
(
parent
,
0
,
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