X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d181e0532987ae568eca8b1965f84b953cfb4a13..da865fdd325f7833246eecd665849b14f43e19d7:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index a17b0401d2..68136888e9 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1340,11 +1340,15 @@ void wxWindowMSW::Refresh(bool eraseBack, const wxRect *rect) pRect = NULL; } +#ifndef __SMARTPHONE__ UINT flags = RDW_INVALIDATE | RDW_ALLCHILDREN; if ( eraseBack ) flags |= RDW_ERASE; ::RedrawWindow(hWnd, pRect, NULL, flags); +#else + ::InvalidateRect(hWnd, pRect, eraseBack); +#endif } }