X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe161a2685012cf90bb5bfe95f2260aee71d8ad7..024026be1dddaa0acf1360dc9a3847fd671de7a0:/include/wx/msw/stattext.h?ds=sidebyside diff --git a/include/wx/msw/stattext.h b/include/wx/msw/stattext.h index c42f65552c..d9e8f0b742 100644 --- a/include/wx/msw/stattext.h +++ b/include/wx/msw/stattext.h @@ -12,10 +12,6 @@ #ifndef _WX_STATTEXT_H_ #define _WX_STATTEXT_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "stattext.h" -#endif - class WXDLLEXPORT wxStaticText : public wxStaticTextBase { public: @@ -40,6 +36,10 @@ public: long style = 0, const wxString& name = wxStaticTextNameStr); + // override some methods to resize the window properly + virtual void SetLabel(const wxString& label); + virtual bool SetFont( const wxFont &font ); + protected: // implement/override some base class virtuals virtual wxBorder GetDefaultBorder() const; @@ -48,6 +48,7 @@ protected: virtual wxSize DoGetBestSize() const; virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const; + DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText) };