Re: [PATCH 1/2] user32: add edit control check to see if its in a dialog on WM_CHAR/VK_RETURN.
9 Apr
2008
9 Apr
'08
9:13 a.m.
"Lei Zhang" <thestig(a)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(a)winehq.org
6459
Age (days ago)
6459
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard