◄CWnd► ◄Up► ◄Contents► ◄Index► ◄Back► ──Microsoft Foundation Classes────────────────────────────────────────────── 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. Calls the ◄Default► member function, which responds by calling the ◄ReleaseCapture► Windows function. The Default member function does not cancel any other modes. Override this member function in your derived class to handle the ◄WM_CANCELMODE► message. See Also ◄CWnd::Default►, ◄::ReleaseCapture►, ◄WM_CANCELMODE► -♦-