void wxWindowPalm::Refresh(bool eraseBack, const wxRect *rect) { WinHandle handle = (WinHandle)GetHWND(); if(handle) { #ifdef __WXPALMOS6__ if(rect) { RectangleType dirtyRect; dirtyRect.topLeft.x = rect->GetX() - 1; dirtyRect.topLeft.y = rect->GetY() - 1; dirtyRect.extent.x = rect->GetWidth() + 1; dirtyRect.extent.y = rect->GetHeight() + 1; WinInvalidateRect(handle, &dirtyRect); } else { WinInvalidateWindow(handle); } #else // __WXPALMOS5__ WinSetActiveWindow (handle); #endif } }
void wxWindowPalm::Refresh(bool eraseBack, const wxRect *rect) { WinHandle handle = GetWinHandle(); if(handle) { if(rect) { RectangleType dirtyRect; dirtyRect.topLeft.x = rect->GetX() - 1; dirtyRect.topLeft.y = rect->GetY() - 1; dirtyRect.extent.x = rect->GetWidth() + 1; dirtyRect.extent.y = rect->GetHeight() + 1; WinInvalidateRect(handle, &dirtyRect); } else { WinInvalidateWindow(handle); } } }