Thread: Tab Control Text

  1. #1
    Registered User
    Join Date
    Apr 2010

    Tab Control Text

    Now that I have created a tab control, I am trying to add static text to the tab control. But, I am not exactly sure as to how I can make it so that it is only added to one of the tabs. And I am using the Windows API and just C. I am not using MFC.

    Any help on this is greatly appreciated.

  2. #2
    train spotter
    Join Date
    Aug 2001
    near a computer
    Create the static when you create the TAb control (without the WS_VISIBLE style so the control is invisible).

    Process the TABs selection change msgs.

    When the 'correct' TAB is selected use ShowWindow() to show/hide the control.

    Multiple controls are usually added to a dialog that is shown/hiden instead.
    You may need to set the z-order.
    You may need to reflect move and size msgs from the parent TAB to the controls.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DirectX | Drawing text
    By gavra in forum Game Programming
    Replies: 4
    Last Post: 06-08-2009, 12:23 AM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  3. Building a tab custom control
    By Mithoric in forum Windows Programming
    Replies: 19
    Last Post: 03-06-2004, 09:34 AM
  4. Tab control in VC++
    By dhrodrigues in forum Windows Programming
    Replies: 6
    Last Post: 01-01-2004, 07:51 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM