Announcement

Collapse
No announcement yet.

tab control tab background color

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Chris Boss
    replied
    It is relatively easy, by subclassing the control and processing the WM_ERASEBKGND message.

    WM_PAINT code, when it calls beginpaint will generate this message for drawing the background. You can process the message yourself and draw any background you like.

    Leave a comment:


  • Chris Holbrook
    replied
    Just bumped into this C code looking for something else. It seems to do what I wanted, but note the word "hideous" in the title of the linked page:

    http://www.glennslayden.com/tabctrl_bkgnd.htm

    When I get a moment I'll try it in PB.

    Leave a comment:


  • Chris Holbrook
    started a topic tab control tab background color

    tab control tab background color

    Can the tab control's tab (the sticky up bit for a horizontal tab control) background color be set by some other means than making the tab ownerdrawn? And can the entire area of the sticky up bit be colored, rather than just the RECT returned by TabCtrl_GetItemRect?
Working...
X