GetMenu

Syntax

HMENU GetMenu(hWnd)

This function retrieves a handle to the menu of the specified window.

Parameter Type/Description  
hWnd HWND Identifies the window whose menu is to be examined.  

Return Value

The return value identifies the menu. It is NULL if the given window has no menu. The return value is undefined if the window is a child window.