// Create a DC corresponding to a canvas
wxWindowDC(wxWindow *win);
- ~wxWindowDC(void);
+ virtual ~wxWindowDC(void);
+ wxWindow *GetWindow() const { return m_window; }
protected :
virtual void DoGetSize( int *width, int *height ) const;
wxWindow *m_window;
// Create a DC corresponding to a canvas
wxClientDC(wxWindow *win);
- ~wxClientDC(void);
+ virtual ~wxClientDC(void);
protected:
virtual void DoGetSize( int *width, int *height ) const;
// Create a DC corresponding to a canvas
wxPaintDC(wxWindow *win);
- ~wxPaintDC(void);
+ virtual ~wxPaintDC(void);
protected:
virtual void DoGetSize( int *width, int *height ) const;