Change MFC Controls Color - WM_CTLCOLOR and CtlColor

WM_CTLCOLOR Message

The WM_CTLCOLOR message is used in 16-bit versions of Windows to change the color scheme of list boxes, the list boxes of combo boxes, message boxes, button controls, edit controls, static controls, and dialog boxes.

In 32-bit versions of Windows, the WM_CTLCOLOR message has been replaced by more specific notifications. These replacements include the following:
WM_CTLCOLORBTN
WM_CTLCOLOREDIT
WM_CTLCOLORDLG
WM_CTLCOLORLISTBOX
WM_CTLCOLORSCROLLBAR
WM_CTLCOLORSTATIC


Ref:

TN062: Message Reflection for Windows Controls - http://msdn.microsoft.com/en-us/library/eeah46xd(VS.80).aspx

Changing the Background Color of an Edit Control - http://www.codeguru.com/cpp/controls/editctrl/backgroundcolor/article.php/c9047

Create a Hyper Link in MFC - http://www.microsoft.com/msj/1297/c1297.aspx

Sending WM_CTLCOLOR for ListBox - http://www.codeguru.com/forum/showthread.php?t=257363

http://www.tech-archive.net/Archive/VC/microsoft.public.vc.mfc/2004-07/1792.html

http://www.codeproject.com/KB/edit/CReadOnlyEdit.aspx?display=PrintAll&fid=145411&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=1375261

CPropTree v1.0 - Property Tree Control By sramsay - http://69.10.233.10/KB/tree/proptree.aspx

COptionTree By Matthew R. Miller : CPropTree Version 2.0 - http://www.codeproject.com/KB/tree/coptiontree.aspx?fid=3829&df=90&mpp=25&noise=3&sort=Position&view=Quick&fr=51

Enhancements of Matthew R. Millers COptionTree (with different Colors) - http://www.codeproject.com/KB/tree/COptionTree2.aspx?display=PrintAll&fid=285234&df=90&mpp=25&noise=3&sort=Position&view=Quick&select=2188385