CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 1999
    Location
    Los Angeles, USA
    Posts
    253

    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

  2. #2
    Join Date
    Jun 2005
    Posts
    121

    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.

  3. #3
    Join Date
    Mar 2004
    Location
    33°11'18.10"N 96°45'20.28"W
    Posts
    1,808

    Re: Ownerdraw TabControls, what's the secret?


  4. #4
    Join Date
    Nov 1999
    Location
    Los Angeles, USA
    Posts
    253

    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
  •  





Click Here to Expand Forum to Full Width

Featured