Share via


CMFCPopupMenuBar Class

A menu bar embedded into a pop-up menu.

class CMFCPopupMenuBar : public CMFCToolBar

Members

Public Methods

Name

Description

CMFCPopupMenuBar::AdjustSizeImmediate

Immediately recalculates the layout of a pane. (Overrides CPane::AdjustSizeImmediate.)

CMFCPopupMenuBar::BuildOrigItems

 

CMFCPopupMenuBar::CloseDelayedSubMenu

 

CMFCPopupMenuBar::ExportToMenu

 

CMFCPopupMenuBar::FindDestintationToolBar

 

CMFCPopupMenuBar::GetCurrentMenuImageSize

 

CMFCPopupMenuBar::GetDefaultMenuId

 

CMFCPopupMenuBar::GetLastCommandIndex

 

CMFCPopupMenuBar::GetOffset

 

CMFCPopupMenuBar::ImportFromMenu

 

CMFCPopupMenuBar::IsDropDownListMode

 

CMFCPopupMenuBar::IsPaletteMode

 

CMFCPopupMenuBar::IsRibbonPanel

 

CMFCPopupMenuBar::IsRibbonPanelInRegularMode

 

CMFCPopupMenuBar::LoadFromHash

 

CMFCPopupMenuBar::RestoreDelayedSubMenu

 

CMFCPopupMenuBar::SetButtonStyle

  (Overrides CMFCToolBar::SetButtonStyle.)

CMFCPopupMenuBar::SetOffset

 

CMFCPopupMenuBar::StartPopupMenuTimer

 

Data Members

Name

Description

CMFCPopupMenuBar::m_bDisableSideBarInXPMode

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

CObject

   CCmdTarget

      CWnd

         CBasePane

            CPane

               CMFCBaseToolBar

                  CMFCToolBar

                     CMFCPopupMenuBar

Requirements

Header: afxpopupmenubar.h

See Also

Reference

Hierarchy Chart

CMFCColorBar Class

CMFCPopupMenu Class

Other Resources

MFC Classes