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
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.
Re: Ownerdraw TabControls, what's the secret?
Re: Ownerdraw TabControls, what's the secret?
Thanks,
UserPaint looks like what I was missing.