CWnd::GetMenu 

CMenu* GetMenu( ) const;

Return Value

Identifies the menu. The value is NULL if CWnd has no menu. The return value is undefined if CWnd is a child window.

The returned pointer may be temporary and should not be stored for later use.

Remarks

Retrieves a pointer to the menu for this window. This function should not be used for child windows because they do not have a menu.

CWnd OverviewClass MembersHierarchy Chart

See Also   ::GetMenu