|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
The framework calls this member function to inform CWnd to cancel any internal mode.
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.