“static_cast”: 无法从“void (__thiscall CMyNetChatDlg::* )(WPARAM,LPARAM)”转换为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)”

解决方法:

把原来的消息函数原型改为: 

afx_msg   LRESULT   OnMyMessage(WPARAM   wParam,   LPARAM   lParam); 


LRESULT   CMyWnd::OnMyMessage(WPARAM   wParam,   LPARAM   lParam) 
{ 
    return   0; 
}

你可能感兴趣的:(“static_cast”: 无法从“void (__thiscall CMyNetChatDlg::* )(WPARAM,LPARAM)”转换为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)”)