]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/window.h
Added validator to generic date picker control
[wxWidgets.git] / include / wx / window.h
index bb2c9432041df1d1f6056f21294cacf0bbfa4690..5396fe59eec19a83525b97c04c3fd15b7b82c9ab 100644 (file)
@@ -453,7 +453,7 @@ public:
     bool Disable() { return Enable(false); }
 
     virtual bool IsShown() const { return m_isShown; }
-    bool IsEnabled() const { return m_isEnabled; }
+    virtual bool IsEnabled() const { return m_isEnabled; }
 
         // get/set window style (setting style won't update the window and so
         // is only useful for internal usage)
@@ -692,7 +692,10 @@ public:
                           const wxRect *rect = (const wxRect *) NULL ) = 0;
 
         // a less awkward wrapper for Refresh
-    void RefreshRect(const wxRect& rect) { Refresh(true, &rect); }
+    void RefreshRect(const wxRect& rect, bool eraseBackground = true)
+    {
+        Refresh(eraseBackground, &rect);
+    }
 
         // repaint all invalid areas of the window immediately
     virtual void Update() { }