|
-
November 19th, 2008, 08:56 AM
#1
Owner-draw button
I've just started out with owner-drawn buttons. When I create a owner-drawn button the button rectangle gets painted with the same color as a dialog's background.
I've successfully painted over this handling the WM_DRAWITEM message.
I'm trying to figure out where this dialog-color painting is coming from (e.g. during what message is the window painted) since I want to make use of transparency effects on my button and thus need the dialog-colored block removed.
For what is is worth, I've noticed that the normal push button also includes the dialog-colored "background" at its outer edges (please see attached image).
I know how to remove the dialog-colored background from a static image by handling WM_CTLCOLORSTATIC, but I'm a bit lost with this button.
Any ideas please?
Last edited by links; November 26th, 2008 at 07:01 AM.
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
|