Expand Minimize
This topic has not yet been rated - Rate this topic

CWnd::Default

Calls the default window procedure.

LRESULT Default( );

Return Value

Depends on the message sent.

Remarks

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.

Example

// 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();
}

See Also

CWnd Overview | Class Members | Hierarchy Chart | CWnd::DefWindowProc | DefWindowProc

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.