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.
lpszCaption | A caption to be displayed when the CBCGPColorBar object is not docked |
lstDocColors | A list of document colors |
bShowWhenDocked | Sends to its owner the WM_SETMESSAGESTRING message |