X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c6212a0cb7e6285f62198a9411d91bbe8dc06e60..ba8ac2c7c30f6a18ac1fae70162be008c3fc378d:/src/msw/control.cpp diff --git a/src/msw/control.cpp b/src/msw/control.cpp index 5c1740dfad..06d75a9921 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -143,13 +143,11 @@ bool wxControl::MSWCreateControl(const wxChar *classname, if ( !m_hWnd ) { -#ifdef __WXDEBUG__ wxLogLastError(wxString::Format ( _T("CreateWindowEx(\"%s\", flags=%08lx, ex=%08lx)"), classname, style, exstyle )); -#endif // __WXDEBUG__ return false; } @@ -245,6 +243,9 @@ WXDWORD wxControl::MSWGetStyle(long style, WXDWORD *exstyle) const wxSize wxControl::DoGetBestSize() const { + if (m_windowSizer) + return wxControlBase::DoGetBestSize(); + return wxSize(DEFAULT_ITEM_WIDTH, DEFAULT_ITEM_HEIGHT); }