Tab control background color

This is a discussion on Tab control background color within the Windows Programming forums, part of the Platform Specific Boards category; How can I give tab control a background color? Or foreground color? I've searched Google, but found nothing. C++, Win32, ...

  1. #1
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318

    Tab control background color

    How can I give tab control a background color? Or foreground color?

    I've searched Google, but found nothing.

    C++, Win32, Dev-C++
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    What is the best way to make tabbed windows?
    There should be a window for each tab, which contains the controls in that tab, but what class should I use for it?
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  4. #4
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Typically, a borderless dialog is used for each tab, especially if different controls are to be displayed in each tab. You can either create them all at once and just show/hide them in response to a TCN_SELCHANGE notification, or create/destroy them in response to the same notification.

    If you prefer you can register and create your own window classes and use them instead.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Critique my lighting model.
    By psychopath in forum Game Programming
    Replies: 4
    Last Post: 08-12-2006, 07:23 PM
  2. bg color of tab control
    By hiya in forum Windows Programming
    Replies: 1
    Last Post: 06-03-2005, 12:19 PM
  3. Tab Control - Setting The Background colour
    By ventolin in forum Windows Programming
    Replies: 1
    Last Post: 01-27-2005, 05:13 PM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM
  5. Just one Question?
    By Irish-Slasher in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2002, 10:19 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21