Groups | Blog | Home
all groups > visual studio .net general > april 2005 >

visual studio .net general : CTLCOLOR_BTN & OnCtlColor()


Eitan
4/26/2005 2:40:07 PM
Hello,

I have a view that is a CFormView. I place a CButton on it. I would like
to change the button text and background color.

I am using the OnCtlColor() through (WM_CTLCOLOR) and I am looking for
CTLCOLOR_BTN messages.

Nothing happens (I am using the same code from their example....)

Thanks,
Eitan
Bob Moore
4/27/2005 12:00:00 AM
[quoted text, click to view]

You can't change the colour of buttons using CTLCOLOR messages. You'll
have to go owner-draw.

--
Bob Moore
http://bobmoore.mvps.org/
(this is a non-commercial site and does not accept advertising)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Do not reply via email unless specifically requested to do so.
Unsolicited email is NOT welcome and will go unanswered.
AddThis Social Bookmark Button