X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/936f635341e9b92b37db93cc7781d564babbe25f..b04237742c51e022af8ca8fe8933437734f392a3:/include/wx/msw/statusbar.h?ds=sidebyside diff --git a/include/wx/msw/statusbar.h b/include/wx/msw/statusbar.h index 38822039f5..4b4677c0f3 100644 --- a/include/wx/msw/statusbar.h +++ b/include/wx/msw/statusbar.h @@ -14,7 +14,9 @@ #if wxUSE_NATIVE_STATUSBAR -class WXDLLEXPORT wxStatusBar : public wxStatusBarBase +class WXDLLIMPEXP_FWD_CORE wxClientDC; + +class WXDLLIMPEXP_CORE wxStatusBar : public wxStatusBarBase { public: // ctors and such @@ -24,6 +26,7 @@ public: long style = wxST_SIZEGRIP, const wxString& name = wxStatusBarNameStr) { + m_pDC = NULL; (void)Create(parent, id, style, name); } @@ -39,7 +42,6 @@ public: // each field of status line has it's own text virtual void SetStatusText(const wxString& text, int number = 0); - virtual wxString GetStatusText(int number = 0) const; // set status line fields' widths virtual void SetStatusWidths(int n, const int widths_field[]); @@ -57,17 +59,23 @@ public: virtual int GetBorderX() const; virtual int GetBorderY() const; + virtual bool SetFont(const wxFont& font); + virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); protected: void CopyFieldsWidth(const int widths[]); void SetFieldsWidth(); + void UpdateFieldText(int nField); // override some base class virtuals virtual wxSize DoGetBestSize() const; virtual void DoMoveWindow(int x, int y, int width, int height); + // used by UpdateFieldText + wxClientDC *m_pDC; + private: DECLARE_DYNAMIC_CLASS_NO_COPY(wxStatusBar) };