BCGControlBar Pro for MFC
COLORREF CBCGPColorPickerCtrl::GetColor ( int  nIndex = -1) const

Returns the selected color

Returns
An RGB value of the selected color.

Call this function to retrieve the selected color.

Parameters
nIndexSpecifies a color index. If this parametr is -1, the currently selected color is used.