X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53a2db124c633f80bdb16336084262037d879a2c..711f12ef2ea0c37d65b3170f78f4705ee85d0c40:/include/wx/msw/statusbar.h?ds=sidebyside diff --git a/include/wx/msw/statusbar.h b/include/wx/msw/statusbar.h index 8828b640e2..4b4677c0f3 100644 --- a/include/wx/msw/statusbar.h +++ b/include/wx/msw/statusbar.h @@ -14,6 +14,8 @@ #if wxUSE_NATIVE_STATUSBAR +class WXDLLIMPEXP_FWD_CORE wxClientDC; + class WXDLLIMPEXP_CORE wxStatusBar : public wxStatusBarBase { public: @@ -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) };