]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
Deprecate wxPathExists, make wxDirExists used everywhere, minor source cleaning.
[wxWidgets.git] / src / msw / window.cpp
index a17b0401d29e15b79db3bf669dff18bf5d3f0346..68136888e9a5bc3219772f966ea79570c5f9a597 100644 (file)
@@ -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
     }
 }