error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CchatDlg::* )(CPoint)' to 'UI
出现这个错误的原因可是“人力不可抗拒”之原因造成的,因为旧版本的ON_WM_NCHITTEST宏使用了 UINT(__thiscallCWzButton::*)(CPoint); 类型的类成员函数指针,其定义如下: #defineON_WM_NCHITTEST()/ {WM_NCHITTEST,0,0,0,AfxSig_wp,/ (AFX_PMSG)(AFX_PMSGW)(UINT(AFX_MSG