- // Compatibility with X's requirements for drawing on top of all windows
- static bool StartDrawingOnTop(wxWindow* WXUNUSED(window)) { return TRUE; }
- static bool StartDrawingOnTop(wxRect* WXUNUSED(rect) = NULL) { return TRUE; }
- static bool EndDrawingOnTop(void) { return TRUE; }
+ // Compatibility with X's requirements for drawing on top of all windows:
+ // they don't do anything under MSW
+ static bool StartDrawingOnTop(wxWindow* WXUNUSED(window)) { return true; }
+ static bool StartDrawingOnTop(wxRect* WXUNUSED(rect) = NULL) { return true; }
+ static bool EndDrawingOnTop() { return true; }
+
+protected:
+ virtual void DoGetSize(int *w, int *h) const
+ {
+ GetDeviceSize(w, h);
+ }