which sets the initial window size to the size needed to accommodate all sizer elements and sets the size hints which, if this window is a top level one, prevent the user from resizing it to be less than this minimal size. This is called automatically by window creation functions so should not be required by the application programmer.Notice that this function is mostly internal to wx Widgets and shouldn’t be called by the user code.Sizers and device contexts are not, however, as they don’t appear on screen themselves.Please note that all children of the window will be deleted automatically by the destructor before the window itself is deleted which means that you don’t have to worry about deleting them manually. In this case, the overloads are non-virtual because having multiple virtual functions with the same name results in a virtual function name hiding at the derived class level (in English, this means that the derived class has to override all overloaded variants if it overrides any of them).
The client area is the area which may be drawn on by the programmer, excluding title bar, border, scrollbars, etc.
is the base class for all windows and represents any visible object on screen.
All controls, top level windows and so on are windows.
Notice that the best size returned by this function is cached internally, so if anything that results in the best size changing (e.g.
change to the control contents) happens, you need to call rather than this method itself as you need to explicitly account for the window borders size if you do the latter.