Fix compilation errors due to recent typedef changes
authorRobin Dunn <robin@alldunn.com>
Thu, 26 Feb 2004 21:12:16 +0000 (21:12 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 26 Feb 2004 21:12:16 +0000 (21:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_bitmap.i
wxPython/src/_cursor.i
wxPython/src/_icon.i
wxPython/src/_window.i

index 0dbb88f169f4544e8cc3f2b1b31ab175f3c62c0b..a5b032d961367e859be5aa9219982735b08b6207 100644 (file)
@@ -110,7 +110,9 @@ public:
     // wxGDIImage methods
 #ifdef __WXMSW__
     long GetHandle();
-    void SetHandle(long handle);
+    %extend {
+        void SetHandle(long handle) { self->SetHandle((WXHANDLE)handle); }
+    }
 #endif
 
     bool Ok();
index 7c4acbd0a2943f062a696dcd56238ab015cae3da..6ce76d4cf1811707337692ddfcb18ee6cd87e462 100644 (file)
@@ -132,9 +132,11 @@ public:
         long , GetHandle(),
         "Get the MS Windows handle for the cursor");
     
-    DocDeclStr(
-        void , SetHandle(long handle),
-        "Set the MS WIndows handle for the cursor");
+    %extend {
+    DocStr(SetHandle,
+        "Set the MS Windows handle to use for the cursor");
+        void SetHandle(long handle) { self->SetHandle((WXHANDLE)handle); }
+    }
     
 #endif
     
index cfcdd02a39038d57cc1765bba38dff53960cb806..6a69d79f411992d19c96a542a1149b8b9e7d11b2 100644 (file)
@@ -57,7 +57,9 @@ public:
     // wxGDIImage methods
 #ifdef __WXMSW__
     long GetHandle();
-    void SetHandle(long handle);
+    %extend {
+        void SetHandle(long handle) { self->SetHandle((WXHANDLE)handle); }
+    }
 #endif
     bool Ok();
     int GetWidth();
index e4ec1cbb65d88258320c6d3c6c59f8155efbaa12..9c07523c3e54b42a86c6b86e3626f6bbae8191f0 100644 (file)
@@ -1691,8 +1691,8 @@ wxWindow* wxFindWindowByLabel( const wxString& label,
     wxWindow* wxWindow_FromHWND(unsigned long hWnd) {
 #ifdef __WXMSW__
         wxWindow* win = new wxWindow;
-        win->SetHWND(hWnd);
-        win->SubclassWin(hWnd);
+        win->SetHWND((WXHWND)hWnd);
+        win->SubclassWin((WXHWND)hWnd);
         return win;
 #else
         wxPyRaiseNotImplemented();