Resizing the Tab Control

Resizing the tab control within the property sheet is the same as resizing any other window. The following code resizes the tab control increasing its width by 100 pixels. It should be noted that the controls within the property pages are not repositioned or resized by this operation. Reducing the width of the tab control could hide some of the controls within the property pages.
	CRect rectWnd;
	GetTabControl()->GetWindowRect(rectWnd);
	GetTabControl()->SetWindowPos(NULL, 0, 0,
		rectWnd.Width() + 100,
		rectWnd.Height(),
		SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE);



Comments

  • Transparent Tab-Background

    Posted by Legacy on 08/25/2003 12:00am

    Originally posted by: Bowler

    Hi,
    I've filled the Property-Sheet Background with Bitmaps. But the space beneath the tabs is still filles with gray-color. How can I make this space appear transparent, so that the background image is shown?

    Reply
  • How to completely hide the TabCtrl? Thx

    Posted by Legacy on 05/21/2002 12:00am

    Originally posted by: zhangbo

    I have this need. Thx

    Reply
  • Resizing the Tab Control

    Posted by Legacy on 08/23/2000 12:00am

    Originally posted by: Manish K. Agarwal

    I have a property sheet and 3 property pages on it. I want to make all 3 tabs take same space equal to 1/3 of page width.
    Manish K. Aggarwal
    (mkag@rediffmail.com)

    Reply
  • Resizing of Modeless Property Dialog Box

    Posted by Legacy on 08/03/2000 12:00am

    Originally posted by: Hariprasad V. Rao

    How do I increase or decrease the size of Modeless Property Dialog Box(like Find and Replace Dialog Box in MS Word97 Application).

    Thanking you

    H.V. Rao

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: May 6, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT While you likely have very good reasons for remaining on WinXP after end of support -- an estimated 20-30% of worldwide devices still are -- the bottom line is your security risk is now significant. In the absence of security patches, attackers will certainly turn their attention to this new opportunity. Join Lumension Vice President Paul Zimski in this one-hour webcast to discuss risk and, more importantly, 5 pragmatic risk mitigation techniques …

  • You probably have several goals for your patient portal of choice. Is "community" one of them? With a bevy of vendors offering portal solutions, it can be challenging for a hospital to know where to start. Fortunately, YourCareCommunity helps ease the decision-making process. Read this white paper to learn more. "3 Ways Clinicians can Leverage a Patient Portal to Craft a Healthcare Community" is a published document owned by www.medhost.com

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds