]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/statusbr.h
correct the inversed assert check in LVN_DELETEITEM handler (closes #10831)
[wxWidgets.git] / include / wx / statusbr.h
index 2a36f8b59bc62f493520b48c1c0bbf6b72eb6433..0b286fc7f75e9eeae949c392e4b109b89fe92113 100644 (file)
@@ -183,8 +183,23 @@ public:
     virtual bool CanBeOutsideClientArea() const { return true; }
 
 protected:
+
+    // wxWindow overrides:
+
+#if wxUSE_TOOLTIPS
+   virtual void DoSetToolTip( wxToolTip *tip )
+        {
+            wxASSERT_MSG(!HasFlag(wxSTB_SHOW_TIPS),
+                         "Do not set tooltip(s) manually when using wxSTB_SHOW_TIPS!");
+            wxWindow::DoSetToolTip(tip);
+        }
+#endif
+   
     virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
 
+
+    // internal helpers & data:
+
     // calculate the real field widths for the given total available size
     wxArrayInt CalculateAbsWidths(wxCoord widthTotal) const;