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
#ifdef __WXMSW__
long GetHandle();
void SetHandle(long handle);
%extend {
void SetHandle(long handle) { self->SetHandle((WXHANDLE)handle); }
}
#endif
bool Ok();

View 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

View 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();

View 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();