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.
CWnd::SetMenu
◄CWnd►                                        ◄Up► ◄Contents► ◄Index► ◄Back►
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL SetMenu( CMenu* pMenu );
 
  Parameter   Description
 
  <pMenu>     Identifies the new menu. If this parameter is NULL, the
              current menu is removed.
 
  Remarks
 
  Sets the current menu to the specified menu.
 
  SetMenu will not destroy a previous menu. An application should call the
  ◄CMenu::DestroyMenu► member function to accomplish this task.
 
  Return Value
 
  TRUE if the menu is changed; otherwise FALSE.
 
  See Also
 
  ◄CMenu::DestroyMenu►, ◄CMenu::LoadMenu►, ◄::SetMenu►, ◄CWnd::GetMenu►
 
 
                                     -♦-