Partager via


CMFCColorPopupMenu Class

Represents a pop-up menu that users use to select colors in a document or application.

class CMFCColorPopupMenu : public CMFCPopupMenu

Members

Public Constructors

Name

Description

CMFCColorPopupMenu::CMFCColorPopupMenu

Constructs a CMFCColorPopupMenu object.

CMFCColorPopupMenu::~CMFCColorPopupMenu

Destructor.

Public Methods

Name

Description

CMFCColorPopupMenu::CreateTearOffBar

Creates a dockable tear-off color bar. (Overrides CMFCPopupMenu::CreateTearOffBar.)

CMFCColorPopupMenu::GetMenuBar

Returns the CMFCPopupMenuBar that is embedded inside the pop-up menu. (Overrides CMFCPopupMenu::GetMenuBar.)

CMFCColorPopupMenu::GetThisClass

Used by the framework to obtain a pointer to the CRuntimeClass object that is associated with this class type.

CMFCColorPopupMenu::SetPropList

Sets the property grid control object of the embedded CMFCColorBar object.

Data Members

Name

Description

m_bEnabledInCustomizeMode

A Boolean value that determines whether to show the color bar.

m_wndColorBar

The CMFCColorBar object that provides color selection.

Remarks

This class inherits the pop-up menu functionality of the CMFCPopupMenu class and manages a CMFCColorBar object that provides color selection. When the toolbar framework is in customization mode and the m_bEnabledInCustomizeMode member is set to FALSE, the color bar object is not shown. For more information about customization mode, see CMFCToolBar::IsCustomizeMode

For more information about CMFCColorBar, see CMFCColorBar Class.

Inheritance Hierarchy

CObject

   CCmdTarget

      CWnd

         CFrameWnd

            CMiniFrameWnd

               CMFCPopupMenu

                  CMFCColorPopupMenu

Requirements

Header: afxcolorpopupmenu.h

See Also

Reference

Hierarchy Chart

Other Resources

MFC Classes