mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-10-06 07:00:16 +08:00
The functions InformFirstDirection() in wxWindow and wxSizer forced the code overriding it to be written in unnatural way, by storing the parameters passed to this function and then using them in other functions later. Add new functions wxWindow::GetMinSizeFromKnownDirection() and wxSizer::CalcMinSizeFromKnownDirection() taking the same parameters as InformFirstDirection() but which can use them directly to return the desired result. Change wxStaticText and wxWrapSizer to use them instead of the old function to simplify their code (that of wxWrapSizer could probably be still simplified further, as it doesn't seem necessary to store these values at all any longer, but for now keep it as is).