| description | Learn more about: Working with a Tab Control | |||
|---|---|---|---|---|
| title | Working with a Tab Control | |||
| ms.date | 11/04/2016 | |||
| helpviewer_keywords |
|
|||
| ms.assetid | 819488e3-4944-44b7-9483-195edb8e0aed |
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.