Don't map point to parent's client window because the rest of the code

assumes screen coordinates.
This commit is contained in:
Ulrich Czekalla 2005-03-25 16:38:15 +00:00 committed by Alexandre Julliard
parent 4d32a475a8
commit 852fc5f161
1 changed files with 0 additions and 4 deletions

View File

@ -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);