diff --git a/wxPython/src/_bitmap.i b/wxPython/src/_bitmap.i index 0dbb88f169..a5b032d961 100644 --- a/wxPython/src/_bitmap.i +++ b/wxPython/src/_bitmap.i @@ -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(); diff --git a/wxPython/src/_cursor.i b/wxPython/src/_cursor.i index 7c4acbd0a2..6ce76d4cf1 100644 --- a/wxPython/src/_cursor.i +++ b/wxPython/src/_cursor.i @@ -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 diff --git a/wxPython/src/_icon.i b/wxPython/src/_icon.i index cfcdd02a39..6a69d79f41 100644 --- a/wxPython/src/_icon.i +++ b/wxPython/src/_icon.i @@ -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(); diff --git a/wxPython/src/_window.i b/wxPython/src/_window.i index e4ec1cbb65..9c07523c3e 100644 --- a/wxPython/src/_window.i +++ b/wxPython/src/_window.i @@ -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();