]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/tbar95.cpp
SWIGged updates for wxMac
[wxWidgets.git] / src / msw / tbar95.cpp
index 13b388e50951dbc9f43e5d66ac95866682f8f2a3..004af499a59c84bc5b2f6316ed7ea246df30af20 100644 (file)
@@ -1177,7 +1177,10 @@ bool wxToolBar::HandleSize(WXWPARAM wParam, WXLPARAM lParam)
         else
         {
             w = LOWORD(lParam);
-            h = r.bottom - r.top;
+            if (HasFlag( wxTB_FLAT ))
+                h = r.bottom - r.top - 3;
+            else
+                h = r.bottom - r.top;
             if ( m_maxRows )
             {
                 // FIXME: 6 is hardcoded separator line height...