Re: Value Based Colorization of Dialog Controls
- From: Asko Telinen <asko.NOSPAM.telinen@xxxxxxxxxxxxxxxxx>
- Date: Tue, 03 May 2005 10:03:35 +0300
mcdesigns@xxxxxxxxx wrote:
I'm currently working with an MFC dialog box that displays numerical data dynamically from a remote server in a series of text control boxes. I'd like to be able to change the background color of these boxes based upon the values in the boxes.
So far, I've been able to change the default color of the background of
the entire dialog box and modify all text colors. However, modifying
colors for specific boxes and making changes based on values called
from those boxes is a bit challenging for me. If anyone could give me
any tips or ideas on how I might approach this, I would be very
grateful.
Kind regards, Marcus
You should handle a WM_CTLCOLOR message in dialog box. Editboxes sends this message to its parent window for painting parameters.
Asko. .
- References:
- Value Based Colorization of Dialog Controls
- From: mcdesigns
- Value Based Colorization of Dialog Controls
- Prev by Date: Re: Value Based Colorization of Dialog Controls
- Next by Date: Re: file path
- Previous by thread: Re: Value Based Colorization of Dialog Controls
- Next by thread: Re: MFC and Qt
- Index(es):
Relevant Pages
|