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);

More by Author

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Must Read