BOOL CreateMenu( );
Return Value
Nonzero if the menu was created successfully; otherwise 0.
Remarks
Creates a menu and attaches it to the CMenu object.
The menu is initially empty. Menu items can be added by using the AppendMenu or InsertMenu member function.
If the menu is assigned to a window, it is automatically destroyed when the window is destroyed.
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::CMenu, CMenu::DestroyMenu, CMenu::InsertMenu, CWnd::SetMenu, ::CreateMenu, CMenu::AppendMenu