BOOL LoadMenu( LPCTSTR lpszResourceName );
BOOL LoadMenu( UINT nIDResource );
Return Value
Nonzero if the menu resource was loaded successfully; otherwise 0.
Parameters
lpszResourceName
Points to a null-terminated string that contains the name of the menu resource to load.
nIDResource
Specifies the menu ID of the menu resource to load.
Remarks
Loads a menu resource from the application’s executable file and attaches it to the CMenu object.
Before exiting, an application must free system resources associated with a menu if the menu is not assigned to a window. An application frees a menu by calling the DestroyMenu member function.
CMenu Overview | Class Members | Hierarchy Chart
See Also CMenu::AppendMenu, CMenu::DestroyMenu, CMenu::LoadMenuIndirect, ::LoadMenu