Re: ? Resetting CListCtrl color [flag] to (default) system color scheme
From: Alec S. (a_at_a.com)
Date: 05/20/04
- Next message: Joseph M. Newcomer: "Re: Visual C++ 6 support issue"
- Previous message: Tim: "Re: MFC MDI app hangs randomly on some machines, but not others (most are OK). Typical causes?"
- In reply to: Joseph M. Newcomer: "Re: ? Resetting CListCtrl color [flag] to (default) system color scheme"
- Next in thread: Joseph M. Newcomer: "Re: ? Resetting CListCtrl color [flag] to (default) system color scheme"
- Reply: Joseph M. Newcomer: "Re: ? Resetting CListCtrl color [flag] to (default) system color scheme"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Joseph M. Newcomer: "Re: Visual C++ 6 support issue"
- Previous message: Tim: "Re: MFC MDI app hangs randomly on some machines, but not others (most are OK). Typical causes?"
- In reply to: Joseph M. Newcomer: "Re: ? Resetting CListCtrl color [flag] to (default) system color scheme"
- Next in thread: Joseph M. Newcomer: "Re: ? Resetting CListCtrl color [flag] to (default) system color scheme"
- Reply: Joseph M. Newcomer: "Re: ? Resetting CListCtrl color [flag] to (default) system color scheme"
- Messages sorted by: [ date ] [ thread ]