Log in

View Full Version : Change background color of edit control


nehaYadav
11-10-2005, 01:30 PM
Hi

I hv used read only Edit control. I want to change the color of edit control.
How can i do this. Please suggest me with example. I am wsing EVC++ for smartphone. Not MFC

Thnx in advance

Kris Kumar
11-15-2005, 04:30 AM
I believe you have to handle the WM_CTLCOLORBTN message in the parent window of the edit control.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceui40/html/cerefWM_CTLCOLORBTN.asp