BCGControlBar Pro for MFC
void CBCGPColorBar::SetDocumentColors ( LPCTSTR  lpszCaption,
CList< COLORREF, COLORREF > &  lstDocColors,
BOOL  bShowWhenDocked = FALSE 
)

Sets the displayed colors from a specific document

Call this member function to allow CBCGPColorBar display colors defined in the specific document.

Parameters
lpszCaptionA caption to be displayed when the CBCGPColorBar object is not docked
lstDocColorsA list of document colors
bShowWhenDockedSends to its owner the WM_SETMESSAGESTRING message