X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/25466131acbbca2186d01fb852d61f50ba968fb4..57d0f66a02c560a1d7c772c1272aedd03eb709ea:/src/os2/frame.cpp diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index 18399f06ec..b885819f93 100644 --- a/src/os2/frame.cpp +++ b/src/os2/frame.cpp @@ -36,8 +36,6 @@ #include "wx/os2/private.h" -#include "wx/generic/statusbr.h" - // ---------------------------------------------------------------------------- // globals // ---------------------------------------------------------------------------- @@ -706,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;