#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;
}
{
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;
}
{
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