Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Base Class Members
Data Members
Construction/Destruction
Initialization
Menu Operations
Menu Item Operations
Overridables
Base Class Members
Data Members
Specifies the handle to the Windows menu attached to the CMenu object. |
Construction
Constructs a CMenu object. |
Initialization
Attaches a Windows menu handle to a CMenu object. |
|
Creates an empty menu and attaches it to a CMenu object. |
|
Creates an empty pop-up menu and attaches it to a CMenu object. |
|
Deletes any temporary CMenu objects created by the FromHandle member function. |
|
Destroys the menu attached to a CMenu object and frees any memory that the menu occupied. |
|
Detaches a Windows menu handle from a CMenu object and returns the handle. |
|
Returns a pointer to a CMenu object given a Windows menu handle. |
|
Returns the m_hMenu wrapped by this CMenu object. |
|
Loads a menu resource from the executable file and attaches it to a CMenu object. |
|
Loads a menu from a menu template in memory and attaches it to a CMenu object. |
Menu Operations
Deletes a specified item from the menu. If the menu item has an associated pop-up menu, destroys the handle to the pop-up menu and frees the memory used by it. |
|
Displays a floating pop-up menu at the specified location and tracks the selection of items on the pop-up menu. |
|
Displays a floating pop-up menu at the specified location and tracks the selection of items on the pop-up menu. |
Menu Item Operations
Appends a new item to the end of this menu. |
|
Places a check mark next to or removes a check mark from a menu item in the pop-up menu. |
|
Places a radio button next to a menu item and removes the radio button from all of the other menu items in the group. |
|
Enables, disables, or dims (grays) a menu item. |
|
Determines the default menu item on the specified menu. |
|
Retrieves the help context ID associated with the menu. |
|
Retrieves information on a specific menu. |
|
Sets information on a specific menu. |
|
Determines the number of items in a pop-up or top-level menu. |
|
Obtains the menu-item identifier for a menu item located at the specified position. |
|
Retrieves information about a menu item. |
|
Returns the status of the specified menu item or the number of items in a pop-up menu. |
|
Retrieves the label of the specified menu item. |
|
Retrieves a pointer to a pop-up menu. |
|
Inserts a new menu item at the specified position, moving other items down the menu. |
|
Inserts a new menu item at the specified position in a menu. |
|
Changes an existing menu item at the specified position. |
|
Deletes a menu item with an associated pop-up menu from the specified menu. |
|
Sets the default menu item for the specified menu. |
|
Sets the help context ID to be associated with the menu. |
|
Associates the specified check-mark bitmaps with a menu item. |
|
Changes information about a menu item. |
Overridables
Called by the framework when a visual aspect of an owner-drawn menu changes. |
|
Called by the framework to determine menu dimensions when an owner-drawn menu is created. |
Operators
Determines if two menu objects are not equal. |
|
Determines if two menu objects are equal. |
|
Retrieves the handle of the menu object. |