[PATCH 1/2] user32: add edit control check to see if its in a dialog on WM_CHAR/VK_RETURN.
Alexandre Julliard
julliard at winehq.org
Wed Apr 9 04:13:22 CDT 2008
"Lei Zhang" <thestig at google.com> writes:
> +static BOOL EDIT_IsInsideDialog(EDITSTATE *es)
> +{
> + static WCHAR dialog_class[] = {'#','3','2','7','7','0',0};
> + WCHAR name[8];
> + int r;
> +
> + r = GetClassNameW(es->hwndParent, name, 8);
> + if (r > 0)
> + if (!lstrcmpW(name, dialog_class))
> + return TRUE;
> + return FALSE;
> +}
You should test the WIN_ISDIALOG flag instead.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list