Update of /cvsroot/pywin32/pywin32/Pythonwin
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv3164
Modified Files:
win32uimodule.cpp
Log Message:
expose if win32ui is build as unicode and hook the 'W' version of some messages accordingly
Index: win32uimodule.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/win32uimodule.cpp,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** win32uimodule.cpp 8 Jan 2009 22:11:52 -0000 1.46
--- win32uimodule.cpp 14 Jan 2009 12:11:46 -0000 1.47
***************
*** 2024,2027 ****
--- 2024,2034 ----
#endif
ADD_CONSTANT(debug); // @const win32ui|debug|1 if we are current using a _DEBUG build of win32ui, else 0.
+ if (PyModule_AddIntConstant(module, "UNICODE",
+ #ifdef UNICODE
+ 1
+ #else
+ 0
+ #endif
+ ) == -1) return -1;
ADD_CONSTANT(AFX_IDW_PANE_FIRST); // @const win32ui|AFX_IDW_PANE_FIRST|Id of the first splitter pane
ADD_CONSTANT(AFX_IDW_PANE_LAST); // @const win32ui|AFX_IDW_PANE_LAST|Id of the last splitter pane
|