Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How do i Paint tab conrtol?

How do i Paint tab conrtol?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++tutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    IN MFC... Plz guide me how can i apply a bmp on Tab control on all tabs including the upper tab label. Current application has bitmapped dialog box which is used in each tab but the label of tabs should also be bitmapped.

    H 1 Reply Last reply
    0
    • A Anonymous

      IN MFC... Plz guide me how can i apply a bmp on Tab control on all tabs including the upper tab label. Current application has bitmapped dialog box which is used in each tab but the label of tabs should also be bitmapped.

      H Offline
      H Offline
      Hiigara
      wrote on last edited by
      #2

      You have 2 options 1) You have to set the WS_OWNERDRAW style. Check the MSDN library docs for ownerdrawn controls. This allow you to draw the labels but not the empty space where there are no labels. So this option may not suit you at all. 2) If you want to customize the entire area of the tab, including borders, you have to subclass the tab control and handle WM_PAINT yourself. I strongly recommend this article that explains how to do this: http://www.codeproject.com/tabctrl/customtab.asp

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups