Someone knows some way of putting only 16 colors in the CColorDialog of Visual Studio c开发者_Python百科++ when it is opened?
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:
精彩评论