April 14th, 1999, 09:22 AM
I want to change the text color of buttons on the fly, but I don't want to use the owner draw option. I've tried the WM_CTLCOLOR message and I can change the text color of every other control except for the button. There has to be a simple way somewhere, right?
Gerd Mayer
July 26th, 1999, 09:55 AM
Sorry, but if you want to do that, you must
derive a class from CButton and react on WM_PAINT.
That's why the ButtonText has its color from the system settings -> If you change this color all buttons will get the new textcolor ( see SetSysColor, GetSysColor)