CFrameWnd::SetMenuBarVisibility
Sets the default behavior of the menu in the current MFC application to be either hidden or visible.
virtual void SetMenuBarVisibility(
DWORD nStyle
);
Parameters
Parameter |
Description |
---|---|
[in] nStyle |
Specifies whether the menu is by default hidden, or is visible and has the focus. The nStyle parameter can have the following values:
|
Remarks
If the value of the nStyle parameter is not valid, this method asserts in Debug mode and raises CInvalidArgException in Release mode. In case of other runtime errors, this method asserts in Debug mode and raises an exception derived from the CException class.
This method affects the state of menus in applications written for Windows Vista and later.
Requirements
Header: afxwin.h