CMFCColorMenuButton::CMFCColorMenuButton

Constructs a CMFCColorMenuButton object.

CMFCColorMenuButton();
CMFCColorMenuButton(
   UINT uiCmdID,
   LPCTSTR lpszText,
   CPalette* pPalette=NULL 
);

Parameters

  • [in] uiCmdID
    A button command ID.

  • [in] lpszText
    The button text.

  • [in] pPalette
    A pointer to the button's color palette.

Remarks

The first constructor is the default constructor. The object's current color and automatic color are initialized to black (RGB(0, 0, 0)).

The second constructor initializes the button to the color that corresponds to the specified command ID.

Requirements

Header: afxcolormenubutton.h

See Also

Reference

CMFCColorMenuButton Class

Hierarchy Chart