X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/10cbb81eda8caf834dc9a5552801ac9ce87e9de1..824fd93d761e1e697be19a4ca582c5259e12c8ea:/src/common/wincmn.cpp diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index aa5c6d3865..c4fba2a8ab 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -152,6 +152,8 @@ wxWindowBase::wxWindowBase() // no style bits m_exStyle = m_windowStyle = 0; + + m_backgroundStyle = wxBG_STYLE_SYSTEM; #if wxUSE_CONSTRAINTS // no constraints whatsoever @@ -1081,6 +1083,8 @@ bool wxWindowBase::SetFont(const wxFont& font) m_hasFont = font.Ok(); m_inheritFont = m_hasFont; + InvalidateBestSize(); + return true; }