]> git.saurik.com Git - wxWidgets.git/commitdiff
Calculate better height for toolbar (add borders)
authorJulian Smart <julian@anthemion.co.uk>
Tue, 23 Nov 2004 16:51:15 +0000 (16:51 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 23 Nov 2004 16:51:15 +0000 (16:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/tbar95.cpp

index c5d3aaa39e9bb9a4dd0cc1ef445dcf62000e27e8..d1079d550c28934adfec34c216e52ef5c2179f76 100644 (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