sizecbar好像不行,编译通不过,在重载函数UINT CSizingControlBarG::OnNcHitTest(CPoint point)
的时候报错:
d:\work\c++\xproxyserver\xproxyserver\scbarg.cpp(57) : error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CSizingControlBarG::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'
        Cast from base to derived requires dynamic_cast or static_cast
d:\work\c++\xproxyserver\xproxyserver\scbarg.cpp(144) : error C2556: 'LRESULT CSizingControlBarG::OnNcHitTest(CPoint)' : overloaded function differs only by return type from 'UINT CSizingControlBarG::OnNcHitTest(CPoint)'
        d:\work\c++\xproxyserver\xproxyserver\scbarg.h(103) : see declaration of 'CSizingControlBarG::OnNcHitTest'
d:\work\c++\xproxyserver\xproxyserver\scbarg.cpp(144) : error C2371: 'CSizingControlBarG::OnNcHitTest' : redefinition; different basic types
        d:\work\c++\xproxyserver\xproxyserver\scbarg.h(103) : see declaration of 'CSizingControlBarG::OnNcHitTest'
d:\work\c++\xproxyserver\xproxyserver\scbarg.cpp(176) : error C2264: 'CSizingControlBarG::OnNcHitTest' : error in function definition or declaration; function not called
sizecbar.cpp
d:\work\c++\xproxyserver\xproxyserver\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