Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining


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

Community Additions

© 2015 Microsoft