Announcement

Collapse
No announcement yet.

tab control tab background color

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

    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?

    #2
    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.

    Comment


      #3
      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.
      Chris Boss
      Computer Workshop
      Developer of "EZGUI"
      http://cwsof.com
      http://twitter.com/EZGUIProGuy

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎