BCGControlBar Pro for MFC
static COLORREF CBCGPColorMenuButton::GetColorByCmdID ( UINT  uiCmdID)
static

Given a command ID returns an appropriated color

Parameters
uiCmdIDSpecifies the command ID.
Returns
A color that belong to the given command ID.

Use this static member function when you have several color buttons in application. When the user has clicked a color button it will notify its parent by WM_COMMAND message with the button's command ID. This function allows an easy way to determine the button's color.