In VC2005, Micro$@%#^&*oft changed the return type for OnNcHitTest from UINT to LRESULT. Since we want to be compatible with older compilers, we define a bogus type VTS_NC_HIT_TYPE:
#if _MSC_VER >= 1400
#define VTS_NC_HIT_TYPE LRESULT
#else
#define VTS_NC_HIT_TYPE UINT
#endif
and use it in the affected functions