Vincent Povirk madewokherd@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.