On wxWidgets 3.0, SetSizeHints must be called once the panel is fully populated. On wxWidgets 3.1.5, SetSizeHints is not mandatory but can be called to ensure right sizes once the panel is fully populated.