Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CMenu::CreateMenu
CMenu                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL CreateMenu();
 
  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 functions.
 
  If the menu is assigned to a window, it is automatically destroyed when
  the window is destroyed.
 
  Return Value
 
  TRUE if the menu was created successfully; otherwise FALSE.
 
  See Also
 
  CMenu::CMenu, CMenu::DestroyMenu, CMenu::InsertMenu,
  CWnd::SetMenu, ::CreateMenu, CMenu::AppendMenu
 
 
                                     -♦-