Combobox Color Picker 2

This class, CColorComboEx, is a combobox that instead of displaying
strings, displays the standard colors much like the one in Developer
Studio. It also has support for the “Automatic” color option. To add a
color combobox to your project, first add the ColorComboEx.h and
ColorComboEx.cpp files into your project. Next, in the resource editor,
add a combobox. Make sure that the combobox has the “Drop List” type,
the “Fixed” owner draw type, and the “Has Strings” checkbox checked.
Now using ClassWizard, add a member variable for the control based on
the CColorComboEx class. Just compile and run, and you will have a
color combobox.

Download Source (Demo Project) 29KB

More by Author

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Must Read