Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Constructor.

CExtBarColorButton(
   CExtToolControlBar * pBar = NULL,
   UINT nCmdID = ID_SEPARATOR,
   UINT nStyle = 0,
   COLORREF clrDefault = RGB(0, 0, 0),
   COLORREF clrSelected = RGB(0, 0, 0),
   LPARAM lParamCookie = 0L,
   bool bEnableBtnColorDefault = true,
   bool bEnableBtnColorCustom = true,
   LPCTSTR sBtnTextColorDefault = NULL,
   LPCTSTR sBtnTextColorCustom = NULL,
   CExtBarColorButton::e_def_icon_type_t eDIT = __DIT_BOX
);

Parameters

pBar
Pointer to the toolbar object.
nCmdID
Command identifier.
nStyle
Button styles (i.e. the TBBS_ flags).
clrDefault
Default color value applied by the Default button in the color selection menu.
clrSelected
Current color value.
lParamCookie
User-defined data associated with the color button
bEnableBtnColorDefault
Flag indicating whether the Default button should be displayed in the color selection menu.
bEnableBtnColorCustom
Flag indicating whether "Custom" button should be displayed in the color selection menu.
sBtnTextColorDefault
Text for the Default button in the color selection menu.
sBtnTextColorCustom
Text for the Custom button in the color selection menu.
eDIT
Type of the color icon.

See Also

CExtBarColorButton Overview | Class Members | Hierarchy Chart