X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6cf68971005ab7a0ccee82ffffa2924eeb62f689..31fb3cfe02f5ed82c47b80d264e84b8207a456b4:/include/wx/msw/statusbar.h diff --git a/include/wx/msw/statusbar.h b/include/wx/msw/statusbar.h index 14e65d47af..f637807f03 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 @@ -79,6 +80,28 @@ protected: wxVector m_tooltips; 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) };