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