From 4f6b4292aa62c370a006516b7fe24e89ecb181b7 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 23 Nov 2004 16:51:15 +0000 Subject: [PATCH] Calculate better height for toolbar (add borders) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/tbar95.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index c5d3aaa39e..d1079d550c 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -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 -- 2.47.2