[pywin32-checkins] pywin32/win32/src win32gui.i,1.101,1.102
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Roger U. <ru...@us...> - 2007-02-22 20:40:59
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26522/win32/src Modified Files: win32gui.i Log Message: Use standard functions for converting WPARAM, LPARAM, and resource ids. More 64-bit compat issues Allow window class name to be used as well as class atom in CreateWindow Index: win32gui.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32gui.i,v retrieving revision 1.101 retrieving revision 1.102 diff -C2 -d -r1.101 -r1.102 *** win32gui.i 16 Jan 2007 19:04:21 -0000 1.101 --- win32gui.i 22 Feb 2007 20:40:54 -0000 1.102 *************** *** 211,217 **** %init %{ PyEval_InitThreads(); /* Start the interpreter's thread-awareness */ ! PyDict_SetItemString(d, "dllhandle", PyLong_FromVoidPtr(g_dllhandle)); PyDict_SetItemString(d, "error", PyWinExc_ApiError); // hack borrowed from win32security since version of SWIG we use doesn't do keyword arguments #ifdef WINXPGUI --- 211,227 ---- %init %{ PyEval_InitThreads(); /* Start the interpreter's thread-awareness */ [...1006 lines suppressed...] - if (!PyWinObject_AsWCHAR(obTemplateName, (WCHAR **)&pofn->lpTemplateName)) - goto done; - ret=PyWinObject_AsHANDLE(obOwner, (PHANDLE)&pofn->hwndOwner, TRUE) && PyWinObject_AsHANDLE(obhInstance, (PHANDLE)&pofn->hInstance, TRUE) && --- 6124,6127 ---- *************** *** 6174,6178 **** PyWinObject_AsWCHAR(obInitialDir, (WCHAR **)&pofn->lpstrInitialDir, TRUE) && PyWinObject_AsWCHAR(obTitle, (WCHAR **)&pofn->lpstrTitle, TRUE) && ! PyWinObject_AsWCHAR(obDefExt, (WCHAR **)&pofn->lpstrDefExt, TRUE); done: --- 6129,6134 ---- PyWinObject_AsWCHAR(obInitialDir, (WCHAR **)&pofn->lpstrInitialDir, TRUE) && PyWinObject_AsWCHAR(obTitle, (WCHAR **)&pofn->lpstrTitle, TRUE) && ! PyWinObject_AsWCHAR(obDefExt, (WCHAR **)&pofn->lpstrDefExt, TRUE) && ! ((obTemplateName==Py_None)||PyWinObject_AsResourceIdW(obTemplateName, (WCHAR **)&pofn->lpTemplateName)); done: |