views:

55

answers:

1

Someone knows some way of putting only 16 colors in the CColorDialog of Visual Studio c++ when it is opened?

+1  A: 

I don't think that's possible with the standard MFC CColorDialog.

But if you really only need 16 colors, wouldn't it make more sense to use something more simple like a combo box to pick a color, in stead of a full dialog?

Here's a Code Project article with an example implementation of a Color Picker Combo Box:

screenshot

fretje