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

  • The rapid evolution of enterprise storage technologies, combined with external forces, like the explosion of big data, can cause Linux® and server administrators to play catch-up when it comes to storage. Running a bunch of monolithic storage devices and proprietary, disconnected technologies forces administrators to spend valuable time creating and managing complex solutions. To reduce complexity and enable rapid deployment of new technologies and applications, server administrators need a single open …

  • The impact of a data loss event can be significant. Real-time data is essential to remaining competitive. Many companies can no longer afford to rely on a truck arriving each day to take backup tapes offsite. For most companies, a cloud backup and recovery solution will eliminate, or significantly reduce, IT resources related to the mundane task of backup and allow your resources to be redeployed to more strategic projects. The cloud - can now be comfortable for you – with 100% recovery from anywhere all …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds