Fix compilation errors due to recent typedef changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-02-26 21:12:16 +00:00
parent 56ca5a419b
commit a0c956e8e6
4 changed files with 13 additions and 7 deletions

View File

@@ -110,7 +110,9 @@ public:
// wxGDIImage methods // wxGDIImage methods
#ifdef __WXMSW__ #ifdef __WXMSW__
long GetHandle(); long GetHandle();
void SetHandle(long handle); %extend {
void SetHandle(long handle) { self->SetHandle((WXHANDLE)handle); }
}
#endif #endif
bool Ok(); bool Ok();

View File

@@ -132,9 +132,11 @@ public:
long , GetHandle(), long , GetHandle(),
"Get the MS Windows handle for the cursor"); "Get the MS Windows handle for the cursor");
DocDeclStr( %extend {
void , SetHandle(long handle), DocStr(SetHandle,
"Set the MS WIndows handle for the cursor"); "Set the MS Windows handle to use for the cursor");
void SetHandle(long handle) { self->SetHandle((WXHANDLE)handle); }
}
#endif #endif

View File

@@ -57,7 +57,9 @@ public:
// wxGDIImage methods // wxGDIImage methods
#ifdef __WXMSW__ #ifdef __WXMSW__
long GetHandle(); long GetHandle();
void SetHandle(long handle); %extend {
void SetHandle(long handle) { self->SetHandle((WXHANDLE)handle); }
}
#endif #endif
bool Ok(); bool Ok();
int GetWidth(); int GetWidth();

View File

@@ -1691,8 +1691,8 @@ wxWindow* wxFindWindowByLabel( const wxString& label,
wxWindow* wxWindow_FromHWND(unsigned long hWnd) { wxWindow* wxWindow_FromHWND(unsigned long hWnd) {
#ifdef __WXMSW__ #ifdef __WXMSW__
wxWindow* win = new wxWindow; wxWindow* win = new wxWindow;
win->SetHWND(hWnd); win->SetHWND((WXHWND)hWnd);
win->SubclassWin(hWnd); win->SubclassWin((WXHWND)hWnd);
return win; return win;
#else #else
wxPyRaiseNotImplemented(); wxPyRaiseNotImplemented();