|
-
January 22nd, 2004, 12:03 PM
#3
'CButton' is the only control that does not respond to the 'OnCtlColor()' message handler even though the MSDN (http://msdn.microsoft.com) explains it that way. To change the color of a 'CButton' control you have to set the style to ownerdrawn and do it yourself.
You will find a complete 'CColorButton' class at http://www.codeguru.com/buttonctrl/color_button.shtml. This class does not allow you to change the color at run-time...you will find a modified control at http://www.codeguru.com/buttonctrl/ClrButton.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|