git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25963
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// wxGDIImage methods
#ifdef __WXMSW__
long GetHandle();
- void SetHandle(long handle);
+ %extend {
+ void SetHandle(long handle) { self->SetHandle((WXHANDLE)handle); }
+ }
#endif
bool Ok();
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
// wxGDIImage methods
#ifdef __WXMSW__
long GetHandle();
- void SetHandle(long handle);
+ %extend {
+ void SetHandle(long handle) { self->SetHandle((WXHANDLE)handle); }
+ }
#endif
bool Ok();
int GetWidth();
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();