From: Robin Dunn Date: Thu, 18 Sep 2003 20:49:47 +0000 (+0000) Subject: SWIGged updates X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b2dfe63f8e02055274f66aba76e9b99398b909d4 SWIGged updates git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/msw/grid.cpp b/wxPython/src/msw/grid.cpp index 6164abc25b..dac5b0008c 100644 --- a/wxPython/src/msw/grid.cpp +++ b/wxPython/src/msw/grid.cpp @@ -2725,6 +2725,7 @@ static PyObject *_wrap_wxPyGridCellEditor_base_PaintBackground(PyObject *self, P #define wxPyGridCellEditor_base_IsAcceptedKey(_swigobj,_swigarg0) (_swigobj->base_IsAcceptedKey(_swigarg0)) static PyObject *_wrap_wxPyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) { PyObject * _resultobj; + bool _result; wxPyGridCellEditor * _arg0; wxKeyEvent * _arg1; PyObject * _argo0 = 0; @@ -2749,12 +2750,11 @@ static PyObject *_wrap_wxPyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyO } { PyThreadState* __tstate = wxPyBeginAllowThreads(); - wxPyGridCellEditor_base_IsAcceptedKey(_arg0,*_arg1); + _result = (bool )wxPyGridCellEditor_base_IsAcceptedKey(_arg0,*_arg1); wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) return NULL; -} Py_INCREF(Py_None); - _resultobj = Py_None; +} _resultobj = Py_BuildValue("i",_result); return _resultobj; } diff --git a/wxPython/src/msw/misc2.cpp b/wxPython/src/msw/misc2.cpp index 9f7ed9151d..1d47194733 100644 --- a/wxPython/src/msw/misc2.cpp +++ b/wxPython/src/msw/misc2.cpp @@ -330,33 +330,34 @@ void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) { case 1: // This one only partially works. Appears to be an undocumented - // convention that not all widgets adhear to. For example, for - // some widgets backgrounds or non-client areas may not be - // painted. + // "standard" convention that not all widgets adhear to. For + // example, for some widgets backgrounds or non-client areas may + // not be painted. ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); break; case 2: - // This one works much better, except for on XP. On Win2k all - // widgets and their children are captured correctly[**]. On XP - // with Themes activated most native widgets draw only partially, - // if at all. Without themes it works just like on Win2k. + // This one works much better, except for on XP. On Win2k nearly + // all widgets and their children are captured correctly[**]. On + // XP with Themes activated most native widgets draw only + // partially, if at all. Without themes it works just like on + // Win2k. // - // ** The radio buttons in a wxRadioBox are not its children by - // default, but you can capture the panel instead... + // ** For example the radio buttons in a wxRadioBox are not its + // children by default, but you can capture it via the panel + // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp. ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); break; case 3: - // This one is only defined in the latest SDK and only available - // on XP. MSDN says it is similar to sending WM_PRINT so I expect - // that it will work similar to the above. Since it is avaialble - // only on XP, it can't be compiled like this and will have to be - // loaded dynamically. - //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); - //break; + // This one is only defined in the latest SDK and is only + // available on XP. MSDN says it is similar to sending WM_PRINT + // so I expect that it will work similar to the above. Since it + // is avaialble only on XP, it can't be compiled like this and + // will have to be loaded dynamically. + // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break; // fall through