Calculate better height for toolbar (add borders)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2004-11-23 16:51:15 +00:00
parent 0a1390c7d8
commit 4f6b4292aa

View File

@ -350,6 +350,7 @@ wxSize wxToolBar::DoGetBestSize() const
// maybe an old (< 0x400) Windows version? try to approximate the
// toolbar size ourselves
sizeBest = GetToolSize();
sizeBest.y += 2 * ::GetSystemMetrics(SM_CYBORDER); // Add borders
sizeBest.x *= GetToolsCount();
// reverse horz and vertical components if necessary