]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/control.cpp
added render sample
[wxWidgets.git] / src / msw / control.cpp
index 94cc8a9dc25155446a5cfd65f67f62174d2b59b4..81f642c81cb35d7dd5e102440c2578aebd5bf964 100644 (file)
@@ -248,11 +248,17 @@ void wxControl::OnEraseBackground(wxEraseEvent& event)
     HBRUSH hBrush = ::CreateSolidBrush(wxColourToRGB(GetBackgroundColour()));
 
     HDC hdc = GetHdcOf((*event.GetDC()));
+
+#ifndef __WXWINCE__
     int mode = ::SetMapMode(hdc, MM_TEXT);
+#endif
 
     ::FillRect(hdc, &rect, hBrush);
     ::DeleteObject(hBrush);
+
+#ifndef __WXWINCE__
     ::SetMapMode(hdc, mode);
+#endif
 }
 
 WXHBRUSH wxControl::OnCtlColor(WXHDC pDC, WXHWND WXUNUSED(pWnd), WXUINT WXUNUSED(nCtlColor),