Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 883
  • Last Modified:

Background color of a CButton

How can I change the background color off a CButton ?
I wan't to do this in a derived class of this class !

I have try to handle the CtlColor message, but it doesn't work.


Thanks for answer.
Mike
0
mike_marquet
Asked:
mike_marquet
1 Solution
 
Tommy HuiEngineerCommented:
You will need to use an ownerdrawn button to do this. Handling OnCtlColor won't work. You will need to handle the painting yourself.

0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now