- int sizeFlags = wxSIZE_AUTO) {}
- virtual void DoSetClientSize(int width, int height) {}
- virtual void DoMoveWindow(int x, int y, int width, int height) {}
-
-#if wxUSE_TOOLTIPS
- virtual void DoSetToolTip( wxToolTip *tip ) {}
-#endif // wxUSE_TOOLTIPS
+ int sizeFlags = wxSIZE_AUTO);
+ virtual void DoSetClientSize(int width, int height);
+
+ virtual void DoCaptureMouse();
+ virtual void DoReleaseMouse();
+
+ // move the window to the specified location and resize it: this is called
+ // from both DoSetSize() and DoSetClientSize() and would usually just call
+ // ::MoveWindow() except for composite controls which will want to arrange
+ // themselves inside the given rectangle
+ virtual void DoMoveWindow(int x, int y, int width, int height);
+
+private:
+ // common part of all ctors
+ void Init();
+ // counterpart to SetFocus
+ void KillFocus();
+
+ MGLDevCtx *m_paintMGLDC;
+ friend class wxPaintDC;