Delen 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

Loads popup menu items from a specified menu resource.

CMFCPopupMenuBar::CloseDelayedSubMenu

Closes a delayed popup menu button.

CMFCPopupMenuBar::ExportToMenu

Builds a menu from the popup-menu buttons.

CMFCPopupMenuBar::FindDestintationToolBar

Locates the toolbar where a specified point lies.

CMFCPopupMenuBar::GetCurrentMenuImageSize

Indicates the size of menu-button images.

CMFCPopupMenuBar::GetDefaultMenuId

Returns the identifier of the default menu item.

CMFCPopupMenuBar::GetLastCommandIndex

Gets the index of the most recently invoked menu command.

CMFCPopupMenuBar::GetOffset

Gets the row offset of the popup menu bar.

CMFCPopupMenuBar::ImportFromMenu

Imports popup menu buttons from a specified menu.

CMFCPopupMenuBar::IsDropDownListMode

Indicates whether the popup menu bar is in drop-down-list mode.

CMFCPopupMenuBar::IsPaletteMode

Indicates whether the popup menu bar is in palette mode.

CMFCPopupMenuBar::IsRibbonPanel

Indicates whether this is a ribbon panel (FALSE by default).

CMFCPopupMenuBar::IsRibbonPanelInRegularMode

Indicates whether this is a ribbon panel in regular mode (FALSE by default).

CMFCPopupMenuBar::LoadFromHash

Loads an archived menu.

CMFCPopupMenuBar::RestoreDelayedSubMenu

Restores a delayed menu button for closing the popup menu bar.

CMFCPopupMenuBar::SetButtonStyle

Sets the style of the toolbar button at the given index. (Overrides CMFCToolBar::SetButtonStyle.)

CMFCPopupMenuBar::SetOffset

Sets the row offset of the popup menu bar.

CMFCPopupMenuBar::StartPopupMenuTimer

Starts the timer for a specified delayed popup menu button.

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