BCGSoft > Products > Product feature tour

Product feature tour

Context | First | Prev | Next | Last
Fully implemented BCGControlBar Pro (MFC)
Fully implemented BCGSuite (MFC)
Not available BCGControlBar (Microsoft .NET)

Color Combo Box Control

A color combo box implements an owner-draw combo box with drop-down list that contains color names with a color box on the left. The list may include either standard, system, application "accent" or user-defined colors.
Color combo box with user-defined colors


Color combo box with accent colors


Sample code:
CBCGPColorComboBox m_wndColorTheme;
....
m_wndColorTheme.AddColor(RGB(207, 221, 238), _T("Blue"));
m_wndColorTheme.AddColor(RGB(149, 157, 167), _T("Black"));
m_wndColorTheme.AddColor(RGB(209, 214, 222), _T("Silver"));
m_wndColorTheme.AddColor(RGB(146, 195, 248), _T("Aqua"));
...
COLORREF cleSelected = m_wndColorTheme.GetSelectedColor();
Prev  Next