Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
Expand Minimize
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.

CWnd::Default 

Calls the default window procedure.


LRESULT Default( );

Depends on the message sent.

The default window procedure provides default processing for any window message that an application does not process. This member function ensures that every message is processed.

// This sample shows how to avoid any button handling in base class,
// if any, and call the default window procedure directly.
void CTestwndView::OnLButtonDown(UINT nFlags, CPoint point) 
{
   CWnd::Default();
}

Community Additions

ADD
Show:
© 2015 Microsoft