|
-
February 20th, 2006, 01:57 PM
#1
Ownerdraw TabControls, what's the secret?
Hello everyone,
Personalizing the look of controls is something I like to do - so I'm trying it with the TabControl in my program. I've set the control's DrawMode to OwnerDrawFixed, and have added a DrawItem event handler.
But in the OnDrawItem function when I simply fill the tab with a solid color, there is still a 3D edge around the tab. Is there any way to stop the base class from drawing those edges, so we can draw it ourself?
Thanks,
Jay
-
February 21st, 2006, 04:17 PM
#2
Re: Ownerdraw TabControls, what's the secret?
Hello,
I think the only way you get rid of those is set the control style UserPaint to true and then do the all the drawing by yourself.
-
February 21st, 2006, 05:49 PM
#3
Re: Ownerdraw TabControls, what's the secret?
-
February 22nd, 2006, 02:18 AM
#4
Re: Ownerdraw TabControls, what's the secret?
Thanks,
UserPaint looks like what I was missing.
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
|