The SetMenu function assigns a new menu to the specified window.
BOOL SetMenu( HWND hWnd, HMENU hMenu )
If the function succeeds, the return value is nonzero.
The window is redrawn to reflect the menu change. A menu can be assigned to any window that is not a child window.
GetMenu, GetSubMenu
origin.h