[pywin32-checkins] pywin32/Pythonwin win32uiExt.h,1.10,1.11
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2007-05-27 12:54:02
|
Update of /cvsroot/pywin32/pywin32/Pythonwin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5569 Modified Files: win32uiExt.h Log Message: Get pythonwin building again with Python 2.3 and earlier. Index: win32uiExt.h =================================================================== RCS file: /cvsroot/pywin32/pywin32/Pythonwin/win32uiExt.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** win32uiExt.h 24 May 2007 12:50:50 -0000 1.10 --- win32uiExt.h 27 May 2007 12:53:48 -0000 1.11 *************** *** 989,996 **** --- 989,1005 ---- template <class T> const AFX_MSGMAP_ENTRY CPythonPrtDlgFramework<T>::_messageEntries[] = { + #if _MFC_VER < 0x0700 + // Python 2.3 (ie, VS6) doesn't like the new version below. + ON_MESSAGE(WM_INITDIALOG, HandleInitDialog) + ON_COMMAND(IDC_PRINT_TO_FILE, HandlePrintToFile) + ON_COMMAND(IDC_PRINT_COLLATE, HandleCollate) + ON_COMMAND_RANGE(IDC_PRINT_RANGE_ALL, IDC_PRINT_RANGE_PAGES, HandlePrintRange) + #else + // Either vista/x64 doesn't like the old version above. ON_MESSAGE(WM_INITDIALOG, &CPythonPrtDlgFramework<T>::HandleInitDialog) ON_COMMAND(IDC_PRINT_TO_FILE, &CPythonPrtDlgFramework<T>::HandlePrintToFile) ON_COMMAND(IDC_PRINT_COLLATE, &CPythonPrtDlgFramework<T>::HandleCollate) ON_COMMAND_RANGE(IDC_PRINT_RANGE_ALL, IDC_PRINT_RANGE_PAGES, &CPythonPrtDlgFramework<T>::HandlePrintRange) + #endif {0, 0, 0, 0, AfxSig_end, (AFX_PMSG)0 } }; |