Don't map point to parent's client window because the rest of the code
assumes screen coordinates.
This commit is contained in:
parent
4d32a475a8
commit
852fc5f161
|
@ -2966,10 +2966,6 @@ void MENU_TrackMouseMenuBar( HWND hWnd, INT ht, POINT pt )
|
|||
|
||||
if (IsMenu(hMenu))
|
||||
{
|
||||
/* map point to parent client coordinates */
|
||||
HWND parent = GetAncestor( hWnd, GA_PARENT );
|
||||
if (parent != GetDesktopWindow()) ScreenToClient( parent, &pt );
|
||||
|
||||
MENU_InitTracking( hWnd, hMenu, FALSE, wFlags );
|
||||
MENU_TrackMenu( hMenu, wFlags, pt.x, pt.y, hWnd, NULL );
|
||||
MENU_ExitTracking(hWnd);
|
||||
|
|
Loading…
Reference in New Issue