Add a comment to wxToolBar::DoGetBestSize()

No real changes, just explain one of the changes done in the commit
909adbb6bf a bit better.
This commit is contained in:
Vadim Zeitlin
2019-04-09 13:37:42 +02:00
parent e6a7267811
commit 6cc1d63d68

View File

@@ -602,7 +602,11 @@ wxSize wxToolBar::DoGetBestSize() const
wxToolBarTool * const
tool = static_cast<wxToolBarTool *>(node->GetData());
RECT rcItem = wxGetTBItemRect(GetHwnd(), toolIndex++);
// Note that we can't just reuse sizeTool here, even though all normal
// items do have this size, this is not true for the separators and it
// is both more robust and simpler to just always use TB_GETITEMRECT
// rather than handling the separators specially.
const RECT rcItem = wxGetTBItemRect(GetHwnd(), toolIndex++);
if ( IsVertical() )
{