|
-
May 4th, 1999, 09:04 AM
#1
Change the color of a CButton?
Hiya!
How do I change the color of a CButton? How do I change the color of a text in a CButton?
Thanks
Magnus
-
May 5th, 1999, 01:35 AM
#2
Re: Change the color of a CButton?
Hi,
did You try WM_CTLCOLOR in the dialog class the button belongs to?
Rudolf
-
May 5th, 1999, 09:09 AM
#3
Re: Change the color of a CButton?
Hi,
For this you need to do two changes:
1. the style of the button need to be owner draw.
2. Trap WM_CTLCOLOR message.
Hope this would help you.
Regards,
Rakesh
Rakesh Verma
SSI, New Delhi
[email protected]
-
May 5th, 1999, 09:32 AM
#4
Re: Change the color of a CButton?
Try to catch WM_ERASEBKGND.
Or try Ownerdraw )))).
Kiesha
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
|