+ // This must be called by the code handling WM_PAINT to remove the DC
+ // cached for this window for the duration of this message processing.
+ static void EndPaint(wxWindow *win);
+
+protected:
+ // Find the DC for this window in the cache, return NULL if not found.
+ static wxPaintDCInfo *FindInCache(wxWindow* win);
+
+ DECLARE_CLASS(wxPaintDCImpl)
+ wxDECLARE_NO_COPY_CLASS(wxPaintDCImpl);
+};
+
+/*
+ * wxPaintDCEx
+ * This class is used when an application sends an HDC with the WM_PAINT
+ * message. It is used in HandlePaint and need not be used by an application.
+ */
+
+class WXDLLIMPEXP_CORE wxPaintDCEx : public wxPaintDC
+{
+public:
+ wxPaintDCEx(wxWindow *canvas, WXHDC dc);