]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/bmpbuttn.cpp
non-PCH build fix (according to Tinderbox).
[wxWidgets.git] / src / msw / bmpbuttn.cpp
index b82972500eaeb3ba14bd02d360e8308c21374792..d4848e4d5fc96c61c0c468beb60e624aae8b0e78 100644 (file)
@@ -408,8 +408,7 @@ bool wxBitmapButton::MSWOnDraw(WXDRAWITEMSTRUCT *item)
         }
 
         // draw the bitmap
-        wxClientDC dst;
-        dst.SetHDC((WXHDC) hDC, false);
+        wxDCTemp dst((WXHDC)hDC);
         dst.DrawBitmap(*bitmap, x1, y1, true);
 
         return true;