CWnd::Default

调用默认窗口过程。

LRESULT Default( );

返回值

取决于发送的消息。

备注

默认窗口过程为应用程序不处理的所有windows消息提供处理的默认值。此成员函数确保每个消息处理。

示例

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

   CWnd::Default();
}

要求

Header: afxwin.h

请参见

参考

CWnd 类

层次结构图

CWnd::DefWindowProc

DefWindowProc