The GetMenu function retrieves a handle to the menu assigned to the specified window.
HMENU GetMenu( HWND hWnd )
The return value is a handle to the menu. If the specified window has no menu, the return value is NULL.
If the window is a child window, the return value is undefined.
EX1
void GetMenu_ex1() { HMENU hmn = GetMenu(GetWindow()); if ( IsMenu(hmn) ) out_str("Get Menu handler successfully"); return; }
SetMenu, GetSubMenu, IsMenu
origin.h