X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34040e3126a6714928377e6f81cc2a9eb476075f..a76342da418c75ead546ce2025db24dad261d237:/src/msw/control.cpp diff --git a/src/msw/control.cpp b/src/msw/control.cpp index 9b38d3d935..65042f462e 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -119,7 +119,7 @@ bool wxControl::MSWCreateControl(const wxChar *classname, // all controls should have this style style |= WS_CHILD; - // create the control visible if it's currently shown for wxWindows + // create the control visible if it's currently shown for wxWidgets if ( m_isShown ) { style |= WS_VISIBLE; @@ -163,7 +163,7 @@ bool wxControl::MSWCreateControl(const wxChar *classname, } #endif // wxUSE_CTL3D - // install wxWindows window proc for this window + // install wxWidgets window proc for this window SubclassWin(m_hWnd); // set up fonts and colours @@ -171,10 +171,7 @@ bool wxControl::MSWCreateControl(const wxChar *classname, SetFont(GetDefaultAttributes().font); // set the size now if no initial size specified - if ( w <= 0 || h <= 0 ) - { - SetBestSize(size); - } + SetInitialBestSize(size); return TRUE; } @@ -228,7 +225,7 @@ wxControl::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant)) // another version for the "composite", i.e. non simple controls /* static */ wxVisualAttributes -wxControl::GetCompositeControlsDefaultAttributes(wxWindowVariant variant) +wxControl::GetCompositeControlsDefaultAttributes(wxWindowVariant WXUNUSED(variant)) { wxVisualAttributes attrs; attrs.font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT);