CMFCPopupMenuBar Class
A menu bar embedded into a pop-up menu.
class CMFCPopupMenuBar : public CMFCToolBar
Members
Public Methods
Name |
Description |
---|---|
Immediately recalculates the layout of a pane. (Overrides CPane::AdjustSizeImmediate.) |
|
Loads popup menu items from a specified menu resource. |
|
Closes a delayed popup menu button. |
|
Builds a menu from the popup-menu buttons. |
|
Locates the toolbar where a specified point lies. |
|
Indicates the size of menu-button images. |
|
Returns the identifier of the default menu item. |
|
Gets the index of the most recently invoked menu command. |
|
Gets the row offset of the popup menu bar. |
|
Imports popup menu buttons from a specified menu. |
|
Indicates whether the popup menu bar is in drop-down-list mode. |
|
Indicates whether the popup menu bar is in palette mode. |
|
Indicates whether this is a ribbon panel (FALSE by default). |
|
Indicates whether this is a ribbon panel in regular mode (FALSE by default). |
|
Loads an archived menu. |
|
Restores a delayed menu button for closing the popup menu bar. |
|
Sets the style of the toolbar button at the given index. (Overrides CMFCToolBar::SetButtonStyle.) |
|
Sets the row offset of the popup menu bar. |
|
Starts the timer for a specified delayed popup menu button. |
Data Members
Name |
Description |
---|---|
Specifies whether the gray sidebar will be displayed when the application has a Windows XP appearance. |
Remarks
The CMFCPopupMenuBar is created at the same time as a CMFCPopupMenu Class and embedded inside it. The CMFCPopupMenuBar covers the entire client area of the CMFCPopupMenu object. It supports keyboard and mouse input. It also communicates that input to the CMFCPopupMenu and to the top-level frame window.
Example
The following example demonstrates how to initialize a CMFCPopupMenuBar object from a CMFCPopupMenu object. This code snippet is part of the Draw Client sample.
// CMFCPopupMenu* pMenuPopup
CMFCPopupMenuBar* pMenuBar = pMenuPopup->GetMenuBar();
Inheritance Hierarchy
Requirements
Header: afxpopupmenubar.h