X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6cf68971005ab7a0ccee82ffffa2924eeb62f689..438959cca892a7651634cc3a7aad4819ac49b23c:/include/wx/msw/statusbar.h diff --git a/include/wx/msw/statusbar.h b/include/wx/msw/statusbar.h index 14e65d47af..1e9ca99054 100644 --- a/include/wx/msw/statusbar.h +++ b/include/wx/msw/statusbar.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: wx/msw/statbr.h +// Name: wx/msw/statusbar.h // Purpose: native implementation of wxStatusBar // Author: Vadim Zeitlin // Modified by: @@ -62,6 +62,7 @@ protected: virtual void DoUpdateStatusText(int number); // override some base class virtuals + virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const; virtual wxSize DoGetBestSize() const; virtual void DoMoveWindow(int x, int y, int width, int height); #if wxUSE_TOOLTIPS @@ -75,10 +76,34 @@ protected: // used by DoUpdateStatusText() wxClientDC *m_pDC; +#if wxUSE_TOOLTIPS // the tooltips used when wxSTB_SHOW_TIPS is given wxVector m_tooltips; +#endif private: + struct MSWBorders + { + int horz, + vert, + between; + }; + + // retrieve all status bar borders using SB_GETBORDERS + MSWBorders MSWGetBorders() const; + + // return the size of the border between the fields + int MSWGetBorderWidth() const; + + struct MSWMetrics + { + int gripWidth, + textMargin; + }; + + // return the various status bar metrics + static const MSWMetrics& MSWGetMetrics(); + DECLARE_DYNAMIC_CLASS_NO_COPY(wxStatusBar) };