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