共用方式為


CPane::OnPressCloseButton

Called by the framework when the user presses the close button on the caption for the pane.

virtual void OnPressCloseButton();

Remarks

This method is called by the framework when a user presses the Close button on the pane's caption. To receive notifications about the Close event, you can override this method in a derived class.

Requirements

Header: afxPane.h

See Also

Reference

CPane Class

Hierarchy Chart