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
edb77973
Commit
edb77973
authored
Nov 07, 1999
by
David Grant
Committed by
Alexandre Julliard
Nov 07, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows sends WM_GETDLGCODE only in response to keyboard messages
(WM_KEYDOWN, WM_CHAR, WM_SYSCHAR).
parent
26b56599
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
dialog.c
windows/dialog.c
+21
-6
No files found.
windows/dialog.c
View file @
edb77973
...
...
@@ -1334,12 +1334,17 @@ BOOL16 WINAPI WIN16_IsDialogMessage16( HWND16 hwndDlg, SEGPTR msg16 )
{
LPMSG16
msg
=
PTR_SEG_TO_LIN
(
msg16
);
BOOL
ret
,
translate
,
dispatch
;
INT
dlgCode
;
INT
dlgCode
=
0
;
if
((
hwndDlg
!=
msg
->
hwnd
)
&&
!
IsChild16
(
hwndDlg
,
msg
->
hwnd
))
return
FALSE
;
dlgCode
=
SendMessage16
(
msg
->
hwnd
,
WM_GETDLGCODE
,
0
,
(
LPARAM
)
msg16
);
if
((
msg
->
message
==
WM_KEYDOWN
)
||
(
msg
->
message
==
WM_SYSCHAR
)
||
(
msg
->
message
==
WM_CHAR
))
{
dlgCode
=
SendMessage16
(
msg
->
hwnd
,
WM_GETDLGCODE
,
0
,
(
LPARAM
)
msg16
);
}
ret
=
DIALOG_IsDialogMessage
(
msg
->
hwnd
,
hwndDlg
,
msg
->
message
,
msg
->
wParam
,
msg
->
lParam
,
&
translate
,
&
dispatch
,
dlgCode
);
...
...
@@ -1366,12 +1371,17 @@ BOOL16 WINAPI IsDialogMessage16( HWND16 hwndDlg, LPMSG16 msg )
BOOL
WINAPI
IsDialogMessageA
(
HWND
hwndDlg
,
LPMSG
msg
)
{
BOOL
ret
,
translate
,
dispatch
;
INT
dlgCode
;
INT
dlgCode
=
0
;
if
((
hwndDlg
!=
msg
->
hwnd
)
&&
!
IsChild
(
hwndDlg
,
msg
->
hwnd
))
return
FALSE
;
dlgCode
=
SendMessageA
(
msg
->
hwnd
,
WM_GETDLGCODE
,
0
,
(
LPARAM
)
msg
);
if
((
msg
->
message
==
WM_KEYDOWN
)
||
(
msg
->
message
==
WM_SYSCHAR
)
||
(
msg
->
message
==
WM_CHAR
))
{
dlgCode
=
SendMessageA
(
msg
->
hwnd
,
WM_GETDLGCODE
,
0
,
(
LPARAM
)
msg
);
}
ret
=
DIALOG_IsDialogMessage
(
msg
->
hwnd
,
hwndDlg
,
msg
->
message
,
msg
->
wParam
,
msg
->
lParam
,
&
translate
,
&
dispatch
,
dlgCode
);
...
...
@@ -1387,12 +1397,17 @@ BOOL WINAPI IsDialogMessageA( HWND hwndDlg, LPMSG msg )
BOOL
WINAPI
IsDialogMessageW
(
HWND
hwndDlg
,
LPMSG
msg
)
{
BOOL
ret
,
translate
,
dispatch
;
INT
dlgCode
;
INT
dlgCode
=
0
;
if
((
hwndDlg
!=
msg
->
hwnd
)
&&
!
IsChild
(
hwndDlg
,
msg
->
hwnd
))
return
FALSE
;
dlgCode
=
SendMessageW
(
msg
->
hwnd
,
WM_GETDLGCODE
,
0
,
(
LPARAM
)
msg
);
if
((
msg
->
message
==
WM_KEYDOWN
)
||
(
msg
->
message
==
WM_SYSCHAR
)
||
(
msg
->
message
==
WM_CHAR
))
{
dlgCode
=
SendMessageW
(
msg
->
hwnd
,
WM_GETDLGCODE
,
0
,
(
LPARAM
)
msg
);
}
ret
=
DIALOG_IsDialogMessage
(
msg
->
hwnd
,
hwndDlg
,
msg
->
message
,
msg
->
wParam
,
msg
->
lParam
,
&
translate
,
&
dispatch
,
dlgCode
);
...
...
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