CMenu::GetMenuState

UINT GetMenuState( UINT nID, UINT nFlags ) const;

Return Value

The value 0xFFFFFFFF if the specified item does not exist. If nId identifies a pop-up menu, the high-order byte contains the number of items in the pop-up menu and the low-order byte contains the menu flags associated with the pop-up menu. Otherwise the return value is a mask (Boolean OR) of the values from the following list (this mask describes the status of the menu item that nId identifies):

Parameters

nID

Specifies the menu item ID, as determined by nFlags.

nFlags

Specifies the nature of nID. It can be one of the following values:

Remarks

Returns the status of the specified menu item or the number of items in a pop-up menu.

CMenu OverviewClass MembersHierarchy Chart

See Also   ::GetMenuState, CMenu::CheckMenuItem, CMenu::EnableMenuItem