how to display a colored text on controls?
-
I want to manage some of my radio buttons and some of my static texts have colored text when the dialog receive a certain message, but other controls donot. How to do this? thanx.
-
I want to manage some of my radio buttons and some of my static texts have colored text when the dialog receive a certain message, but other controls donot. How to do this? thanx.
-
Do you mean I should create a new class, inheriting from the orignal control class, for my control which I want to color its text. Then overridde the OnCtlColor function of the class, use CDC::SetTextColor to set the text color? I am not good at programing, please say it somewhat detailedly. Thanks a lot!
-
Do you mean I should create a new class, inheriting from the orignal control class, for my control which I want to color its text. Then overridde the OnCtlColor function of the class, use CDC::SetTextColor to set the text color? I am not good at programing, please say it somewhat detailedly. Thanks a lot!
olinn wrote: Do you mean I should create a new class, inheriting from the orignal control class, for my control which I want to color its text. Then overridde the OnCtlColor function of the class, use CDC::SetTextColor to set the text color? Yes, that would work. Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"