afx_msg void OnCancelMode();这个函数有什么用?

来源:百度知道 编辑:UC知道 时间:2024/05/18 02:57:38

The framework calls this member function to inform CWnd to cancel any internal mode.

afx_msg void OnCancelMode( );

Remarks
If the CWnd object has the focus, its OnCancelMode member function is called when a dialog box or message box is displayed. This gives the CWnd the opportunity to cancel modes such as mouse capture.

The default implementation responds by calling the ReleaseCapture Windows function. Override this member function in your derived class to handle other modes.