- 16
- 0
- 约9.27千字
- 约 9页
- 2018-03-16 发布于河南
- 举报
windows消息详解
WM_COMMAND ,WM_NOTIFY,WM_ACTIVE,WM_SETCURSOR
#define AfxWndProc (*AfxGetAfxWndProc())
LRESULT CALLBACK AfxWndProc(HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam)
{
// special message which identifies the window as using AfxWndProc
if (nMsg == WM_QUERYAFXWNDPROC)
return 1;
// all other messages route through message map
CWnd* pWnd = CWnd::FromHandlePermanent(hWnd);
ASSERT(pWnd != NULL);
ASSERT(pWnd==NULL || pWnd-m_hWnd == hWnd);
if (pWnd == NULL || pWnd-m_hWnd != hWnd)
return ::DefWindowProc(hWnd, nMsg, wParam, lParam);
return AfxCallWndProc(pWnd, hWnd, nMsg, wParam, lPara
原创力文档

文档评论(0)