X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/446e69bee56ce978cfb87d80a2f8c0e44ec61658..7ed14752bec96877a5aa89d122068dd0897ce8ae:/src/os2/frame.cpp diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index 7555185986..b885819f93 100644 --- a/src/os2/frame.cpp +++ b/src/os2/frame.cpp @@ -704,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;