BCGControlBar Pro for MFC
virtual BOOL CBCGPToolBar::Create ( CWnd *  pParentWnd,
DWORD  dwStyle = dwDefaultToolbarStyle,
UINT  nID = AFX_IDW_TOOLBAR 
)
virtual

Creates the control bar control and attaches it to a CBCGPToolBar object.

Returns
Nonzero if successful; otherwise 0.

Call this function to create a control bar control and attach it to the CBCGPToolBar object. The control is created with the default TBSTYLE_FLAT style. If you need to provide additional control bar styles other than default, call CreateEx().

Parameters
pParentWndPointer to the window that is the toolbar's parent.
dwStyleThe toolbar style. See Toolbar Control and Button Styles in the Platform SDK for a list of appropriate styles.
nIDThe toolbar's child-window ID.

Reimplemented in CBCGPMenuBar, and CBCGPCalculator.