SECMenuBar::CreateEx
BOOLSECMenuBar::CreateEx(DWORDdwExStyle, CWnd*pParentWnd, DWORDdwStyle, UINTnID, LPCTSTRlpszTitle)
Creates the SECMenuBar window. This function is used to create the menu bar when no SECToolBarManager is used.
Defined in: TMenuFrm.cpp
Return Value
TRUE if successful, FALSE if it fails
Parameters
dwExStyle
Extended style bits to use for the menu bar. All SECControlBar extended styles are valid.
pParentWnd
Pointer to the menu bar parent, must not be NULL.
dwStyle
Normal window style bits
nID
Windows ID for the menu bar
lpszTitle
Text to display in the window frame when floating
Example
Use without SECToolBarManager
//m_pMenuBar is a member of SECFrameWnd so you do not have to create it yourself
if( ! m_pMenuBar->CreateEx( CBRS_EX_GRIPPER|CBRS_EX_COOLBORDERS, this ) ||
! m_pMenuBar->SetMenuInfo( 2, IDR_MAINFRAME, IDR_MYMENURES ) )
{
//handle error
}