SECMenuBar::SetMenuInfo
BOOLSECMenuBar::SetMenuInfo(intnCount, UINTnIDMenu)
This is a variable argument function. It will try and load all the menu resources that are passed to it and allow you the user to switch between them using SwitchMenu.
Defined in: TMenuFrm.cpp
Return Value
TRUE if it successfully loads all menus, FALSE otherwise
Parameters
nCount
Count of the variable arguments
nIDMenu
the anchor ID.
Example
Usage
//m_pMenuBar is a member of SECFrameWnd so you do not have to create it yourself
m_pMenuBar->SetMenuInfo( 1, IDR_MAINFRAME );
m_pMenuBar->SetMenuInfo( 5, IDR_MENU1, IDR_MENU2, IDR_MENU3, IDR_MENU4, IDR_MENU5 );