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.) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(Overrides CMFCToolBar::SetButtonStyle.) |
|
|
|
|
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