Thread: bg color of tab control

  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    98

    bg color of tab control

    how can i changed the background color of the tab control (the red area in the attached image) to the window's color, or just remove it?

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Subclass the tab control and handle its WM_ERASEBKGND message as described in this thread. If you just want the individual rectangle as indicated in your attached image, then you should specify that as the fill rectangle.

    This msdn page seems to describe another approach but I've not tried it.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  2. Tab order in Tab Control
    By Halloko in forum Windows Programming
    Replies: 2
    Last Post: 05-08-2005, 11:08 PM
  3. tab control
    By tyouk in forum Windows Programming
    Replies: 6
    Last Post: 02-07-2005, 11:47 PM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  5. Using Tab control to change between dialogs
    By Eado in forum Windows Programming
    Replies: 2
    Last Post: 05-15-2002, 03:43 AM