Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Sets the current menu to the specified menu.
BOOL SetMenu(
CMenu* pMenu
);
Parameters
- pMenu
Identifies the new menu. If this parameter is NULL, the current menu is removed.
Return Value
Nonzero if the menu is changed; otherwise 0.
Remarks
Causes the window to be redrawn to reflect the menu change.
SetMenu will not destroy a previous menu. An application should call the CMenu::DestroyMenu member function to accomplish this task.
Example
See the example for CMenu::LoadMenu.
Requirements
Header: afxwin.h