BCGControlBar Pro for MFC
virtual BOOL CBCGPColorMenuButton::OpenColorDialog ( const COLORREF  colorDefault,
COLORREF &  colorRes 
)
virtual

Opens a color selection dialog

Returns
Nonzero if the user has selected a new color; otherwise 0.

Call this member function to open a color selection dialog from the menu button. If the returned value is nonzero, than a color that has been selected is stored in the colorRes value. Use EnableOtherButton() member function to switch between the standard color selection dialog and the CBCGPColorDialog dialog.

Parameters
colorDefaultA default color to be selected in the color selection dialog
colorResA reference to an RGB value