X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e7445ff8ee26e39fab1e35455e1bef954bdf636f..c0badae10089ea785072d739df817b1f5f05c088:/src/os2/frame.cpp diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index c909d19d16..b885819f93 100644 --- a/src/os2/frame.cpp +++ b/src/os2/frame.cpp @@ -29,21 +29,13 @@ #include "wx/settings.h" #include "wx/dcclient.h" #include "wx/mdi.h" + #include "wx/toolbar.h" + #include "wx/statusbr.h" + #include "wx/menuitem.h" #endif // WX_PRECOMP #include "wx/os2/private.h" -#if wxUSE_STATUSBAR - #include "wx/statusbr.h" - #include "wx/generic/statusbr.h" -#endif // wxUSE_STATUSBAR - -#if wxUSE_TOOLBAR - #include "wx/toolbar.h" -#endif // wxUSE_TOOLBAR - -#include "wx/menuitem.h" - // ---------------------------------------------------------------------------- // globals // ---------------------------------------------------------------------------- @@ -712,6 +704,15 @@ void wxFrame::PositionToolBar() ,vTHeight ); } + else if (pToolBar->GetWindowStyleFlag() & wxTB_BOTTOM ) + { + vWidth = (wxCoord)(vRect.xRight - vRect.xLeft); + pToolBar->SetSize( vRect.xLeft - vFRect.xLeft + ,vRect.yBottom - vTHeight // assuming the vRect contains the client coordinates + ,vWidth + ,vHeight + ); + } else { wxCoord vSwidth = 0;