|
-
Sep 1st, 2001, 07:41 PM
#1
Thread Starter
PowerPoster
Ownerdraw buttons
When I set the button's style to BS_OWNERDRAW, it changes the button to just a simple rectangle - I can't see any text or other style on it. How can keep the button same as it was before but I still use the style "BS_OWNERDRAW"? I actually want to change the backcolor/forecolor of the button but I looked in MSDN library ,and it says that I need to set the button's style to ownerdraw, then I will recieve the message "WM_CTLCOLORBTN".
-
Sep 2nd, 2001, 02:33 PM
#2
Thread Starter
PowerPoster
**bump** Nobody knows that????
-
Sep 2nd, 2001, 02:52 PM
#3
Good Ol' Platypus
I believe OwnerDraw means what it says, the owner draws it. Windows (most likely) won't draw it for you. Therefore you should set the pixels, etc. to be a variant on the Backcolour, eg. your bgcolour is blue (0,0,255) so your top and left lines would be half-white-blue (128,128,255), the lines 1 pixel closer to the centre would be white (always) and the bottom would be black (0,0,0), for the text I guess you would also have to render this yourself...
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Sep 2nd, 2001, 04:24 PM
#4
Thread Starter
PowerPoster
Dam it!! That is too much work Thanks anyway
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
|