error C2440: “static_cast”: 无法从“void (__thiscall CMyStatic::* )(WPARAM,LPARAM)”转换为“LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)”.h里声明: afx_msg void MotionDetectMessage(WPARAM wparam, LPARAM lparam);
消息映射表:    ON_MESSAGE(WM_USER_MOTIONDETECT, MotionDetectMessage)
消息处理函数:  void CMyStatic::MotionDetectMessage(WPARAM wparam, LPARAM lparam)始终编译不通过另外,我查了下MSDN 上面说用户自定义的消息处理函数必须是LRESULT 的返回值(The type of the function must be afx_msg LRESULT (CWnd::*)(WPARAM, LPARAM).)
我有点迷惑 但是在网上看到的很多自定义消息处理函数都是void,在此有所不解~~