+ wxGraphicsContext* GetGraphicsContext() const;
+ void SetGraphicsContext( wxGraphicsContext* ctx );
+
+#ifdef __WXMSW__
+ // override wxDC virtual functions to provide access to HDC associated with
+ // this Graphics object (implemented in src/msw/graphics.cpp)
+ virtual WXHDC AcquireHDC();
+ virtual void ReleaseHDC(WXHDC hdc);
+#endif // __WXMSW__
+
+private:
+ DECLARE_DYNAMIC_CLASS(wxGCDC)
+ wxDECLARE_NO_COPY_CLASS(wxGCDC);
+};
+
+
+class WXDLLIMPEXP_CORE wxGCDCImpl: public wxDCImpl
+{
+public:
+ wxGCDCImpl( wxDC *owner, const wxWindowDC& dc );
+ wxGCDCImpl( wxDC *owner, const wxMemoryDC& dc );
+#if wxUSE_PRINTING_ARCHITECTURE
+ wxGCDCImpl( wxDC *owner, const wxPrinterDC& dc );
+#endif
+#if defined(__WXMSW__) && wxUSE_ENH_METAFILE
+ wxGCDCImpl( wxDC *owner, const wxEnhMetaFileDC& dc );
+#endif
+ wxGCDCImpl( wxDC *owner );