wxWindow *winOld = GetCapture();
if ( winOld )
{
- winOld->DoReleaseMouse();
+ ((wxWindowBase*) winOld)->DoReleaseMouse();
// save it on stack
wxWindowNext *item = new wxWindowNext;
item->win = winOld;
if ( ms_winCaptureNext )
{
- ms_winCaptureNext->win->DoCaptureMouse();
+ ((wxWindowBase*)ms_winCaptureNext->win)->DoCaptureMouse();
wxWindowNext *item = ms_winCaptureNext;
ms_winCaptureNext = item->next;