Changing Text Color

  • Thread starter Thread starter David Hardek
  • Start date Start date
D

David Hardek

Does anyone know where I could find and example of
changing the text color of a static control or maybe a
text box if I need to use that instead?
 
Does anyone know where I could find and example of
changing the text color of a static control or maybe a
text box if I need to use that instead?

David,

You need to handle the WM_CTLCOLORSTATIC or WM_CTLCOLOREDIT
notification messages, so look for examples that use those. For MFC
usage, handle OnCtlColor (WM_CTLCOLOR) and have a look at Knowledge
Base article 132080 "HOWTO: Change the Color of an MFC Child Control
Class".

Dave Lowndes
 
Back
Top