X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/308bb56fd8cdebc4145155c096167562dddb9824..5f3565a2fb3d678b03cf8547f37e56b1efe786f5:/src/msw/tbar95.cpp 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