-
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".
-
**bump** Nobody knows that????
-
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...
-
Dam it!! That is too much work:) Thanks anyway:D