X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3b6c95eb5fbb5bcec4891d5767ffeffe3915e6f0..eb7350290f690dd3e4d92bcf0515027678b3374f:/src/univ/stattext.cpp diff --git a/src/univ/stattext.cpp b/src/univ/stattext.cpp index f854398a17..3fccad2764 100644 --- a/src/univ/stattext.cpp +++ b/src/univ/stattext.cpp @@ -39,7 +39,7 @@ // implementation // ============================================================================ -IMPLEMENT_ABSTRACT_CLASS(wxStaticText, wxControl) +IMPLEMENT_ABSTRACT_CLASS(wxStaticText, wxGenericStaticText) // ---------------------------------------------------------------------------- // creation @@ -62,21 +62,6 @@ bool wxStaticText::Create(wxWindow *parent, return true; } -// ---------------------------------------------------------------------------- -// size management -// ---------------------------------------------------------------------------- - -wxSize wxStaticText::DoGetBestClientSize() const -{ - wxStaticText *self = wxConstCast(this, wxStaticText); - wxClientDC dc(self); - dc.SetFont(GetFont()); - wxCoord width, height; - dc.GetMultiLineTextExtent(GetLabel(), &width, &height); - - return wxSize(width, height); -} - // ---------------------------------------------------------------------------- // drawing // ----------------------------------------------------------------------------