mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user