GetContextMenuItemChecked Method
Windows - Visual C++
Description
The GetContextMenuItemChecked
method returns a value
indicating whether or not a specified context menu item is checked.
Syntax
BOOL checked = GetContextMenuItemChecked(short menuID, short position);
The GetContextMenuItemChecked syntax has these parts:
Part |
Description |
menuID |
A short integer containing the menu ID of the menu to address as described in Remarks. |
position |
The position of the menu item in the menu. The position is one-based. |
checked |
Return value. A Boolean value indicating whether or not the item is checked. |
Remarks
The context menu is the menu that
appears when you right click on the control. It can be turned on or
off by setting the ContextMenuEnabled
property. The context menu is initially empty; you add your preferred
menu items to it using the ContextMenuItem methods.
The menuID parameter is used to indicate whether to address the main context menu or a submenu. The menuID of the main context menu is always 0. The menuID of a submenu is returned when the submenu is created with AppendContextMenuSubmenu or InsertContextMenuSubmenu. Note that this menuID has no relation to any ID used by the Windows API.
See Also: GetContextMenuItemEnabled GetContextMenuItemCount GetContextMenuItemText SetContextMenuItemChecked SetContextMenuItemEnabled SetContextMenuItemText ContextMenu ContextMenuEnabled UpdateContextMenu
Back to: Headline Methods Profile Editor Methods Quote Methods Story Methods