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::CreatePopupMenu
CMenu                                       Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL CreatePopupMenu();
 
  Remarks
 
  Creates a pop-up 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. The application can add the
  pop-up menu to an existing menu or pop-up menu. TrackPopupMenu may be
  used to display this menu as a floating pop-up menu.
 
  If the menu is assigned to a window, it is automatically destroyed when
  the window is destroyed. If the menu is added to an existing menu, it is
  automatically destroyed when that menu is destroyed.
 
  Return Value
 
  TRUE if the pop-up menu was successfully created; otherwise FALSE.
 
  See Also
 
  CMenu::CreateMenu, CMenu::InsertMenu, CWnd::SetMenu,
  CMenu::TrackPopupMenu, ::CreatePopupMenu, CMenu::AppendMenu
 
 
                                     -♦-