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

Creates a menu bar control and attaches it to a CBCGPMenuBar object.

Returns
Nonzero if successful; otherwise zero.

You construct a CBCGPMenuBar in two steps. First call the constructor, then call Create(), which creates the menu bar control and attaches it to the CBCGPMenuBar object.

You can specify any combination of toolbar styles and window styles as described in documentation for CBCGPBaseControlBar::SetBarStyle function.

Parameters
pParentWndPointer to the window that is the menu bar's parent.
dwStyleSpecifies the menu bar style.
nIDThe menu bar's child-window ID.

Reimplemented from CBCGPToolBar.