Re: Restrict CColorDialog = ChooseColor() to 16-bit colors?
Here is a whole list of color choosers, maybe there is something in here
that gives you the functionality you need:
http://www.devdirect.com/all/UserInterfaceColor_PCAT_1991.aspx
Tom
"Chris Shearer Cooper" <chris.shearer.cooper@gmail.com> wrote in message
news:8a6b2c91-94c4-4c46-9d29-bb10438f995a@p24g2000yqm.googlegroups.com...
When I open a CColorDialog (which is just a wrapper for the ChooseColor
() function) on a machine that is set to 16-bit color depth, it still
lets the user select colors that can't be accurately represented in 16
bits. For example, they can select RGB(237, 243, 237) which, when
actually displayed, shows up as RGB(240, 240, 240).
Is there any way to restrict/modify this dialog so that it only allows
users to select 16-bit colors? I don't want it to be during the
verification stage, that's ugly (e.g. popping up a message box that
says "don't pick that color", or modifying the user's selection
without telling them).
Thanks,
Chris