mirror of
https://github.com/reactos/reactos.git
synced 2025-01-08 07:11:16 +00:00
- [User32] Patch by Dmitry Timoshkov : IsDialogMessage should allow control ids other than IDOK when processing WM_KEYDOWN.
svn path=/trunk/; revision=56604
This commit is contained in:
parent
755ed9d608
commit
d20ffb99ef
1 changed files with 1 additions and 1 deletions
|
@ -2561,7 +2561,7 @@ IsDialogMessageW(
|
|||
else if (DC_HASDEFID == HIWORD(dw = SendMessageW (hDlg, DM_GETDEFID, 0, 0)))
|
||||
{
|
||||
HWND hwndDef = DIALOG_IdToHwnd(hDlg, LOWORD(dw));
|
||||
if (hwndDef ? IsWindowEnabled(hwndDef) : LOWORD(dw)==IDOK)
|
||||
if (!hwndDef || IsWindowEnabled(hwndDef))
|
||||
SendMessageW( hDlg, WM_COMMAND, MAKEWPARAM( LOWORD(dw), BN_CLICKED ), (LPARAM)hwndDef);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue