Update of /cvsroot/pywin32/pywin32/Pythonwin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10418
Modified Files:
win32uiExt.h
Log Message:
hack around strange compiler error using vs2008
Index: win32uiExt.h
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/win32uiExt.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** win32uiExt.h 3 Jun 2007 12:35:58 -0000 1.12
--- win32uiExt.h 22 Jan 2008 12:29:50 -0000 1.13
***************
*** 395,398 ****
--- 395,409 ----
};
+ // ack - compile error in MFC9, and only for ON_WM_NCHITTEST!
+ #if _MFC_VER >= 0x0900
+ #undef ON_WM_NCHITTEST
+ // from afxmsg_.h - the UINT was originally LRESULT
+ #define ON_WM_NCHITTEST() \
+ { WM_NCHITTEST, 0, 0, 0, AfxSig_l_p, \
+ (AFX_PMSG)(AFX_PMSGW) \
+ (static_cast< UINT (AFX_MSG_CALL CWnd::*)(CPoint) > (&ThisClass :: OnNcHitTest)) },
+
+ #endif
+
#define ThisClass CPythonWndFramework<T>
template <class T>
|