X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4e3e485bc855bb6aa3e3e7978eac9fb5eea0287e..076e07b60bde6dd90e687e7a0861ea81ce1ef7fe:/src/os2/frame.cpp diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index 2d31220114..b885819f93 100644 --- a/src/os2/frame.cpp +++ b/src/os2/frame.cpp @@ -30,17 +30,12 @@ #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 - -#include "wx/menuitem.h" - // ---------------------------------------------------------------------------- // globals // ---------------------------------------------------------------------------- @@ -709,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;