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?
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论