
Palette creation failure....................
Quote:
> I am trying to build a 256 color palette with custom colors and am
> having major problems getting it to be realized. I have followed the
> examples in MSDN but to no avail. The colors come back dithered and
> the palette modifications are not detectible.
Assuming your palette creation completes successfully, you also have to
select it into your DC prior to drawing and realize it, and you must
handle WM_QUERYNEWPALETTE and WM_PALETTECHANGED in every top-level
window that needs to use your custom palette. -steve
--
McAdams Research
MFC GUI Toolkit [http://home.sprynet.com/sprynet/smcadams]