]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tbar95.cpp
Allow to set the various buttons explicitly (and
[wxWidgets.git] / 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