// classes
//-----------------------------------------------------------------------------
-class WXDLLEXPORT wxPaintDC;
-class WXDLLEXPORT wxWindow;
+class WXDLLIMPEXP_FWD_CORE wxPaintDC;
+class WXDLLIMPEXP_FWD_CORE wxWindow;
class WXDLLEXPORT wxWindowDC: public wxDC
{
// Create a DC corresponding to a canvas
wxWindowDC(wxWindow *win);
- ~wxWindowDC(void);
- virtual void DoGetSize( int *width, int *height ) const;
+ virtual ~wxWindowDC(void);
+ wxWindow *GetWindow() const { return m_window; }
protected :
+ virtual void DoGetSize( int *width, int *height ) const;
+ virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const;
wxWindow *m_window;
+
+ bool m_release;
+ int m_width;
+ int m_height;
+
};
// Create a DC corresponding to a canvas
wxClientDC(wxWindow *win);
- ~wxClientDC(void);
- virtual void DoGetSize( int *width, int *height ) const;
+ virtual ~wxClientDC(void);
+
+protected:
};
class WXDLLEXPORT wxPaintDC: public wxWindowDC
// Create a DC corresponding to a canvas
wxPaintDC(wxWindow *win);
- ~wxPaintDC(void);
- virtual void DoGetSize( int *width, int *height ) const;
+ virtual ~wxPaintDC(void);
+
+protected:
};
#endif