HMENU pascal GetMenu(HWND hWnd) This function returns the handle to the menubar associated with a window. Parameters hWnd is a handle to the window to query. Returns The handle to the menubar which the window owns, or NULLHWND if there is no menubar associated with that window.