]> git.saurik.com Git - wxWidgets.git/commitdiff
SWIGged updates
authorRobin Dunn <robin@alldunn.com>
Thu, 18 Sep 2003 20:49:47 +0000 (20:49 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 18 Sep 2003 20:49:47 +0000 (20:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/msw/grid.cpp
wxPython/src/msw/misc2.cpp

index 6164abc25b19434c7a88c2e9032f4627cf8b6aaa..dac5b0008c95eb620372a346da0667752b012a22 100644 (file)
@@ -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;
 }
 
index 9f7ed9151d45565ce78ee26b69c9522fe0c03030..1d471947332febcbfe53075d2d422358ecee5a79 100644 (file)
@@ -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