class WXDLLIMPEXP_CORE wxWindowDC : public wxDC
{
public:
- wxWindowDC();
+ wxWindowDC() { Init(); }
wxWindowDC( wxWindow *win );
- ~wxWindowDC();
+ virtual ~wxWindowDC();
virtual bool CanDrawBitmap() const { return true; }
virtual bool CanGetTextExtent() const { return true; }
wxCoord *x, wxCoord *y,
wxCoord *descent = NULL,
wxCoord *externalLeading = NULL,
- wxFont *theFont = NULL) const;
+ const wxFont *theFont = NULL) const;
+
+ void Init();
WXDisplay *m_display;
WXWindow m_window;