BCGControlBar Pro for MFC
virtual BOOL CBCGPToolBar::CreateEx ( CWnd *  pParentWnd,
DWORD  dwCtrlStyle = TBSTYLE_FLAT,
DWORD  dwStyle = dwDefaultToolbarStyle,
CRect  rcBorders = CRect(1, 1, 1, 1),
UINT  nID = AFX_IDW_TOOLBAR 
)
virtual

Creates a CBCGPToolBar object with additional styles.

Returns
Nonzero if successful; otherwise 0.

Call this function to create a control bar control and attach it to the CBCGPToolBar object.

Use CreateEx, instead of Create(), when certain styles need to be present during the creation of the embedded control bar control. For example, set dwCtrlStyle to TBSTYLE_FLAT | TBSTYLE_TRANSPARENT to create a toolbar that resembles the Internet Explorer 4 toolbars.

Parameters
pParentWndPointer to the window that is the toolbar's parent.
dwCtrlStyleAdditional styles for the creation of the embedded control bar object.
dwStyleThe toolbar style. See Toolbar Control and Button Styles in the Platform SDK for a list of appropriate styles.
rcBordersA CRect object that defines the widths of the toolbar window borders.
nIDThe toolbar's child-window ID.

Reimplemented in CBCGPMenuBar.