Hi all, Does anyone have experience with using a palette with a progress
control? Everything works fine with a scrollbar control, but I think there
are issues with the progress control because it's a common control. For the
scrollbar, I can select the palette in the WM_CTLCOLORSCROLLBAR message
which works fine, but the progress bar does not send a similar message. The
progress control displays and works fine, but the color of the bar and
background are the closest match, not the colors in the palette I defined. I
know it's a bit out of date, but I'm trying to make the program compatible
with older hardware.
//created palette (HPALETTE g_hPal)
I've tried
{
....
// WM_CREATE
// hwndProgBar = CreateWindow(...);
hdc = GetDC(hwndProgBar);
SelectPalette(hdc, g_hPal, FALSE);
RealizePalette(hdc);
ReleaseDC(hwndProgBar, hdc);
SendMessage(hwndProgBar, PBM_SETBKCOLOR, 0, (LPARAM) PALETTERGB(#,#,#) );
....
}
Thank In Advance,
M