Re: ? Resetting CListCtrl color [flag] to (default) system color scheme

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Alec S. (a_at_a.com)
Date: 05/20/04


Date: Thu, 20 May 2004 00:44:25 -0400


"Joseph M. Newcomer" <newcomer@flounder.com> wrote in message
news:vo7oa0lhl1g5kl93np91hiui8b7j3b27d0@4ax.com...
> I'm guessing a bit here, but my suspiciion is that once you set the color,
the control
> says "trust the color you have been given". The fact that it might
correspond to the
> system color is probably considered irrelevant.
...
> So having once set the color, you have to reset it if you want it to
follow.

Thanks but I already figured this part out like I said in my post and that
"reset" part is exactly what I'm looking for.

> just add a WM_SYSCOLORCHANGE handler. If you want the text color to follow
the scheme,
> then you would use the ::GetSysColor(COLOR_WINDOWTEXT) to get the new
color, and set that.

That would not be very efficient. It would be rather lame if once you set
the color you could never undo it. I would assume that there would be some
sort of function that could reset that elusive flag, I just don't know what.

--
Alec S.
alec <@> synetech <.> cjb <.> net

Quantcast