]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/checkbox.h
[ 1580776 ] wxAnimationCtrl::SetInactiveBitmap
[wxWidgets.git] / include / wx / checkbox.h
index 8eea49bcaba0015c4b02b900b0d6c3d3ba135f41..0fa2516ca319152340b5ab1a2b63a904ca6f98a4 100644 (file)
@@ -108,6 +108,15 @@ public:
 
     virtual bool HasTransparentBackground() { return true; }
 
+    // wxCheckBox-specific processing after processing the update event
+    virtual void DoUpdateWindowUI(wxUpdateUIEvent& event)
+    {
+        wxControl::DoUpdateWindowUI(event);
+
+        if ( event.GetSetChecked() )
+            SetValue(event.GetChecked());
+    }
+
 protected:
     virtual void DoSet3StateValue(wxCheckBoxState WXUNUSED(state)) { wxFAIL; }