Creates the Windows control and attaches it to the CBCGPTabWnd object.
- Returns
- Nonzero if successful; otherwise 0.
You construct a CBCGPTabWnd object in two steps. First call the constructor, then call Create(), which creates the Windows control and attaches it to the CBCGPTabWnd object.
Apply the following styles to a tab control:
- STYLE_3D - to create a tab control with 3D look
- STYLE_FLAT - makes flat tabs
- STYLE_FLAT_SHARED_HORZ_SCROLL - makes flat tabs with a scroll bar, that can scroll the tabs if they are clipped by a parent window.
- STYLE_3D_ONENOTE - creates tab control with Microsoft OneNote style.
- STYLE_3D_VS2005 - creates tab control with Microsoft Visual Studio 2005 (Beta 1) style.
- STYLE_3D_ROUNDED - creates tab control with Microsoft Visual Studio 2005 (Beta 2) style (with rounded tabs).
- STYLE_3D_ROUNDED_SCROLL - creates tab control with Microsoft Visual Studio 2005 (Beta 2) style (with rounded tabs) and scroll buttons.
- STYLE_POINTER - creates tab control with shape-less inactive tabs and pointer to the active tab.
- STYLE_DOTS - creates a "slider" style tab control: dots only are displayed instead of "classic" tabs.
Apply the following location flags to a tab control:
- LOCATION_BOTTOM - the tabs are located at the bottom of the page.
- LOCATION_TOP - the tabs are located at the top of the page.
- Parameters
-
| style | Specifies the window style |
| rect | Specifies the size and position. |
| pParentWnd | A pointer to a parent window. Must not be NULL. |
| nID | The control ID. |
| location | Location of tabs. |
| bCloseBtn | Set this parameter to TRUE if you wish to create tab control with a close button. |