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: August 13, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT If you are developing applications, you'll want to join us to learn how applications are changing as a result of gesture recognition. This technology will change how you and your users interact - not simply with your devices, but with the world around you. Your devices will be able to see and hear what your users are doing. Are your applications ready for this? Join us to learn about Intel® RealSense™ Technology, including never been …

  • Protecting business operations means shifting the priorities around availability from disaster recovery to business continuity. Enterprises are shifting their focus from recovery from a disaster to preventing the disaster in the first place. With this change in mindset, disaster recovery is no longer the first line of defense; the organizations with a smarter business continuity practice are less impacted when disasters strike. This SmartSelect will provide insight to help guide your enterprise toward better …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds