BCGControlBar Pro for MFC
BOOL CBCGPTabWnd::Create ( Style  style,
const RECT &  rect,
CWnd *  pParentWnd,
UINT  nID,
Location  location = LOCATION_BOTTOM,
BOOL  bCloseBtn = FALSE 
)

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
styleSpecifies the window style
rectSpecifies the size and position.
pParentWndA pointer to a parent window. Must not be NULL.
nIDThe control ID.
locationLocation of tabs.
bCloseBtnSet this parameter to TRUE if you wish to create tab control with a close button.