///////////////////////////////////////////////////////////////////////////////
-// Name: wx/msw/statbr.h
+// Name: wx/msw/statusbar.h
// Purpose: native implementation of wxStatusBar
// Author: Vadim Zeitlin
// Modified by:
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
// used by DoUpdateStatusText()
wxClientDC *m_pDC;
+#if wxUSE_TOOLTIPS
// the tooltips used when wxSTB_SHOW_TIPS is given
wxVector<wxToolTip*> 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)
};