[5/6] user32: Set capture on the owner of popup menus.
Alexandre Julliard
julliard at winehq.org
Wed Mar 12 14:27:24 CDT 2014
Vincent Povirk <madewokherd at gmail.com> writes:
> @@ -2057,6 +2057,19 @@ BOOL CDECL X11DRV_ScrollDC( HDC hdc, INT dx, INT dy, HRGN update )
> }
>
>
> +BOOL CALLBACK find_popup_menu_window(HWND hwnd, LPARAM lparam)
> +{
> + HWND *result = (HWND*)lparam;
> +
> + if (GetClassLongW(hwnd, GCW_ATOM) == MAKEINTATOM(32768))
> + {
> + *result = hwnd;
> + return FALSE;
> + }
That's ugly and unreliable.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list