Click here to Skip to main content
14,983,808 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello All,
I want to change the color of my edit control to Grey (suppose) whereas my background color is Black.
I tried using WM_CTLCOLOREDIT and then SetBkColor(hdc, RGB(65,65,65))
But still my editcontrol's color is White.
I want to also ask if there is any way I can have to static controls with different colors.
Thanks a lot in advance for ur help.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900