Hi,
I want to use the CExtColorButton to implement a color picker, but I want to be able to set the available colors.
Can I do this, and if so how?
some more info:
I need to be able to set the colors dynamically. For example, I may have a set of, say, 20 colors that are valid for the user to select and want to make those available using the color picker, rather than the colors that are available by default.
Looking at the Profuis_Controls sample Buttons page as an example. There is a button labelled color. If I press that it displays a color picker, with a set of colors shown. I want to be able to do something similar, but to set the colors that are shown.
I can see a class CExtColorPalletteWnd that looks like it allows setting of colors through CpwColorArraySet(). I’m not sure if a CExtColorButton causes a CExtColorPalletteWnd to be created, but if it does how can I get access to it to change the colors (and if not, what do I do instead to set the colors)?