Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the display state of the menu in the current MFC application to hidden or displayed.
virtual BOOL SetMenuBarState(
DWORD nState
);
Parameters
Parameter |
Description |
---|---|
[in] nState |
Specifies whether to display or hide the menu. The nState parameter can have the following values:
|
Return Value
true if this method successfully changes the menu state; otherwise, false.
Remarks
If a runtime error occurs, this method asserts in Debug mode and raises an exception derived from the CException class.
Requirements
Header: afxwin.h