when the window is added to a sizer use that size with SetSizeHints. This is to fix problems resulting from the previous change where SetSizeHints was called with the initial size from CreateBase. Also, Patch [ 934677 ] wxWindowBase::DoGetBestSize() should exclude hidden windows git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775