HWND QueryTopMenuWindow (HWND Frame_window) 
{ 
  HWND Desktop_menu = WinWindowFromID (HWND_DESKTOP, FID_MENU);

  if (Desktop_menu != NULLHANDLE) 
  { 
    return WinWindowFromID (HWND_DESKTOP, FID_MENU, Frame_window);             /*  This will break the compatibility. */
  } 
  else 
  { 
    return WinWindowFromID (Frame_window, FID_MENU); 
  } 
}   
