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

  • IBM Worklight is a mobile application development platform that lets you extend your business to mobile devices. It is designed to provide an open, comprehensive platform to build, run and manage HTML5, hybrid and native mobile apps.

  • New IT trends to support worker mobility — such as VDI and BYOD — are quickly gaining interest and adoption. But just as with any new trend, there are concerns and pitfalls to avoid.  Download this paper to learn the most important considerations to keep in mind for your VDI project.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds