我创建了一个单文档应用程序,想用sizecbar,添加sizecbar.cpp、sizecbar.h、scbarg.cpp、scbarg.h编译以后报错:
d:\temp\sizecbar\src\sizecbar.cpp(111) : error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CSizingControlBar::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'
        Cast from base to derived requires dynamic_cast or static_cast
d:\temp\sizecbar\src\sizecbar.cpp(259) : warning C4244: 'argument' : conversion from 'INT_PTR' to 'int', possible loss of data
d:\temp\sizecbar\src\sizecbar.cpp(542) : warning C4312: 'type cast' : conversion from 'DWORD' to 'HBRUSH' of greater size
我用的是vc++2005