I want to change the font color of text in a disabled CEdit control which is currently system gray.
As I use a gray background, I wish to change the font color of 开发者_开发百科text ( currently set to rgb value of COLOR_GRAYTEXT) in order to make it easier to read.
There is a solution by using SetSysColors() but that has an ill effect of changing that value for all the applications that are running.Does anyone knows of a better solution?
I tried handling the WM_CTLCOLORSTATIC/ WM_CTLCOLOREDIT message, but the SetTextColor() method didn`t seem to work and application continued to use the system graytext. Does anyone knows the right way to do this?
精彩评论