X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/656fc51cda91ea40154358a6adcd85ded506812a..159b66c02a8f1c724d1af3c768ad5d90f4c8a0e2:/include/wx/statusbr.h?ds=inline diff --git a/include/wx/statusbr.h b/include/wx/statusbr.h index 0f1c587e6c..56e9096737 100644 --- a/include/wx/statusbr.h +++ b/include/wx/statusbr.h @@ -14,6 +14,8 @@ #include "wx/window.h" +#if wxUSE_STATUSBAR + // ---------------------------------------------------------------------------- // wxStatusBar: a window near the bottom of the frame used for status info // ---------------------------------------------------------------------------- @@ -45,6 +47,9 @@ public: virtual int GetBorderX() const = 0; virtual int GetBorderY() const = 0; + // don't want status bars to accept the focus at all + virtual bool AcceptsFocus() const { return FALSE; } + protected: int m_nFields; // the current number of fields int *m_statusWidths; // the width (if !NULL) of the fields @@ -93,5 +98,7 @@ private: DECLARE_DYNAMIC_CLASS(wxStatusBar) }; +#endif + #endif // _WX_STATUSBR_H_BASE_