MFC
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

CWnd::SetMenu 

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.

Nonzero if the menu is changed; otherwise 0.

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.

See the example for CMenu::LoadMenu.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.