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
3944cb3b
Commit
3944cb3b
authored
Aug 19, 2004
by
Zach Gorman
Committed by
Alexandre Julliard
Aug 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When searching for the DEFPUSHBUTTON in a dialog, recurse into child
windows with the WS_EX_CONTROLPARENT style (if they are visible and enabled).
parent
2141f28f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
defdlg.c
windows/defdlg.c
+12
-1
No files found.
windows/defdlg.c
View file @
3944cb3b
...
@@ -115,11 +115,22 @@ static void DEFDLG_RestoreFocus( HWND hwnd )
...
@@ -115,11 +115,22 @@ static void DEFDLG_RestoreFocus( HWND hwnd )
*/
*/
static
HWND
DEFDLG_FindDefButton
(
HWND
hwndDlg
)
static
HWND
DEFDLG_FindDefButton
(
HWND
hwndDlg
)
{
{
HWND
hwndChild
=
GetWindow
(
hwndDlg
,
GW_CHILD
);
HWND
hwndChild
,
hwndTmp
;
hwndChild
=
GetWindow
(
hwndDlg
,
GW_CHILD
);
while
(
hwndChild
)
while
(
hwndChild
)
{
{
if
(
SendMessageW
(
hwndChild
,
WM_GETDLGCODE
,
0
,
0
)
&
DLGC_DEFPUSHBUTTON
)
if
(
SendMessageW
(
hwndChild
,
WM_GETDLGCODE
,
0
,
0
)
&
DLGC_DEFPUSHBUTTON
)
break
;
break
;
/* Recurse into WS_EX_CONTROLPARENT controls */
if
(
GetWindowLongA
(
hwndChild
,
GWL_EXSTYLE
)
&
WS_EX_CONTROLPARENT
)
{
LONG
dsStyle
=
GetWindowLongA
(
hwndChild
,
GWL_STYLE
);
if
((
dsStyle
&
WS_VISIBLE
)
&&
!
(
dsStyle
&
WS_DISABLED
)
&&
(
hwndTmp
=
DEFDLG_FindDefButton
(
hwndChild
))
!=
NULL
)
return
hwndTmp
;
}
hwndChild
=
GetWindow
(
hwndChild
,
GW_HWNDNEXT
);
hwndChild
=
GetWindow
(
hwndChild
,
GW_HWNDNEXT
);
}
}
return
hwndChild
;
return
hwndChild
;
...
...
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