The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



Retrieves the display state of the menu in the current MFC application.

virtual DWORD GetMenuBarState();

The return value can have the following values:

  • AFX_MBS_VISIBLE (0x01) – The menu is visible.

  • AFX_MBS_HIDDEN (0x02) – The menu is hidden.

If a runtime error occurs, this method asserts in Debug mode and raises an exception derived from the CException class.


Header: afxwin.h