Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Working with a Tab Control.
The easiest way to use a tab control (CTabCtrl) is by adding it to a dialog template resource with the dialog editor. You can also use a tab control by itself. MFC calls InitCommonControls for you. The key tasks are as follows:
If the tab control object is embedded in a parent view or dialog class, the control is destroyed when the parent is destroyed.