error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CListBoxEx::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'

当使用VS2005调试低版本(VS2003、VC6.0)的程序时,你可能会遇到上面这条错误。产生这条错误的原因是,在VS2005中,改变了程序的返回类型。

解决方法是:将返回类型由UINT改为LRESULT(声明和实现都要修改)。

17加油!