GetMenu

2.x

  HMENU GetMenu(hwnd)    
  HWND hwnd; /* handle of window, */  

The GetMenu function retrieves the handle of the menu associated with the given window.

Parameters

hwnd

Identifies the window whose menu handle is retrieved.

Return Value

The return value is the handle of the menu if the function is successful. It is NULL if the given window has no menu. It is undefined if the window is a child window.

See Also

GetSubMenu, SetMenu