共用方式為


CFrameWnd::OnHideMenuBar

This function is called when the system is about to hide the menu bar in the current MFC application.

virtual void OnHideMenuBar();

Remarks

This event handler enables your application to perform custom actions when the system is about to hide the menu. You cannot prevent the menu from being hidden, but you can, for example, call other methods to retrieve the menu style or state.

Requirements

Header: afxwin.h

See Also

Concepts

CFrameWnd Class

CFrameWnd Members

Hierarchy Chart

CFrameWnd::OnShowMenuBar