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

  • Packaged application development teams frequently operate with limited testing environments due to time and labor constraints. By virtualizing the entire application stack, packaged application development teams can deliver business results faster, at higher quality, and with lower risk.

  • Live Event Date: September 10, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Modern mobile applications connect systems-of-engagement (mobile apps) with systems-of-record (traditional IT) to deliver new and innovative business value. But the lifecycle for development of mobile apps is also new and different. Emerging trends in mobile development call for faster delivery of incremental features, coupled with feedback from the users of the app "in the wild". This loop of continuous delivery and continuous feedback is …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds