Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0ceb2550
Commit
0ceb2550
authored
Mar 19, 2000
by
Andrew Lewycky
Committed by
Alexandre Julliard
Mar 19, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Propagate IsDialogMessage to the parent if the dialog has the
DS_CONTROL flag.
parent
3c506fa3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
dialog.c
windows/dialog.c
+36
-0
No files found.
windows/dialog.c
View file @
0ceb2550
...
...
@@ -1227,6 +1227,40 @@ static BOOL DIALOG_IsAccelerator( HWND hwnd, HWND hwndDlg, WPARAM vKey )
return
RetVal
;
}
/***********************************************************************
* DIALOG_FindMsgDestination
*
* The messages that IsDialogMessage send may not go to the dialog
* calling IsDialogMessage if that dialog is a child, and it has the
* DS_CONTROL style set.
* We propagate up until we hit a that does not have DS_CONTROL, or
* whose parent is not a dialog.
*
* This is undocumented behaviour.
*/
static
HWND
DIALOG_FindMsgDestination
(
HWND
hwndDlg
)
{
while
(
GetWindowLongA
(
hwndDlg
,
GWL_STYLE
)
&
DS_CONTROL
)
{
WND
*
pParent
;
HWND
hParent
=
GetParent
(
hwndDlg
);
if
(
!
hParent
)
break
;
pParent
=
WIN_FindWndPtr
(
hParent
);
if
(
!
pParent
)
break
;
if
(
!
(
pParent
->
flags
&
WIN_ISDIALOG
))
{
WIN_ReleaseWndPtr
(
pParent
);
break
;
}
WIN_ReleaseWndPtr
(
pParent
);
hwndDlg
=
hParent
;
}
return
hwndDlg
;
}
/***********************************************************************
* DIALOG_IsDialogMessage
...
...
@@ -1257,6 +1291,8 @@ static BOOL DIALOG_IsDialogMessage( HWND hwnd, HWND hwndDlg,
return
TRUE
;
}
hwndDlg
=
DIALOG_FindMsgDestination
(
hwndDlg
);
switch
(
message
)
{
case
WM_KEYDOWN
:
...
...
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