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

Creates a CBCGPMenuBar object with additional styles.

Returns
Nonzero if successful; otherwise 0.

Use this function, instead of Create(), when you need to specify additional control styles that should be provided separately from the toolbar styles (for example, TBSTYLE_TRANSPARENT and CBRS_TOP).

Parameters
pParentWndPointer to the window that is the menu bar's parent.
dwCtrlStyleAdditional styles.
dwStyleSpecifies the menu bar style.
rcBordersSpecifies the border sizes.
nIDThe menu bar's child-window ID.

Reimplemented from CBCGPToolBar.