SWIGged updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2003-09-18 20:49:47 +00:00
parent 62e8fcee74
commit b2dfe63f8e
2 changed files with 20 additions and 19 deletions

View File

@@ -2725,6 +2725,7 @@ static PyObject *_wrap_wxPyGridCellEditor_base_PaintBackground(PyObject *self, P
#define wxPyGridCellEditor_base_IsAcceptedKey(_swigobj,_swigarg0) (_swigobj->base_IsAcceptedKey(_swigarg0)) #define wxPyGridCellEditor_base_IsAcceptedKey(_swigobj,_swigarg0) (_swigobj->base_IsAcceptedKey(_swigarg0))
static PyObject *_wrap_wxPyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) { static PyObject *_wrap_wxPyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj; PyObject * _resultobj;
bool _result;
wxPyGridCellEditor * _arg0; wxPyGridCellEditor * _arg0;
wxKeyEvent * _arg1; wxKeyEvent * _arg1;
PyObject * _argo0 = 0; PyObject * _argo0 = 0;
@@ -2749,12 +2750,11 @@ static PyObject *_wrap_wxPyGridCellEditor_base_IsAcceptedKey(PyObject *self, PyO
} }
{ {
PyThreadState* __tstate = wxPyBeginAllowThreads(); PyThreadState* __tstate = wxPyBeginAllowThreads();
wxPyGridCellEditor_base_IsAcceptedKey(_arg0,*_arg1); _result = (bool )wxPyGridCellEditor_base_IsAcceptedKey(_arg0,*_arg1);
wxPyEndAllowThreads(__tstate); wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) return NULL; if (PyErr_Occurred()) return NULL;
} Py_INCREF(Py_None); } _resultobj = Py_BuildValue("i",_result);
_resultobj = Py_None;
return _resultobj; return _resultobj;
} }

View File

@@ -330,33 +330,34 @@ void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
{ {
case 1: case 1:
// This one only partially works. Appears to be an undocumented // This one only partially works. Appears to be an undocumented
// convention that not all widgets adhear to. For example, for // "standard" convention that not all widgets adhear to. For
// some widgets backgrounds or non-client areas may not be // example, for some widgets backgrounds or non-client areas may
// painted. // not be painted.
::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
break; break;
case 2: case 2:
// This one works much better, except for on XP. On Win2k all // This one works much better, except for on XP. On Win2k nearly
// widgets and their children are captured correctly[**]. On XP // all widgets and their children are captured correctly[**]. On
// with Themes activated most native widgets draw only partially, // XP with Themes activated most native widgets draw only
// if at all. Without themes it works just like on Win2k. // partially, if at all. Without themes it works just like on
// Win2k.
// //
// ** The radio buttons in a wxRadioBox are not its children by // ** For example the radio buttons in a wxRadioBox are not its
// default, but you can capture the panel instead... // 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), ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
PRF_ERASEBKGND | PRF_OWNED ); PRF_ERASEBKGND | PRF_OWNED );
break; break;
case 3: case 3:
// This one is only defined in the latest SDK and only available // This one is only defined in the latest SDK and is only
// on XP. MSDN says it is similar to sending WM_PRINT so I expect // available on XP. MSDN says it is similar to sending WM_PRINT
// that it will work similar to the above. Since it is avaialble // so I expect that it will work similar to the above. Since it
// only on XP, it can't be compiled like this and will have to be // is avaialble only on XP, it can't be compiled like this and
// loaded dynamically. // will have to be loaded dynamically.
//::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
//break;
// fall through // fall through