"Lei Zhang" <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
