[ 1550698 ] Bottom aligned toolbar

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2006-09-17 11:51:08 +00:00
parent 982a6623f7
commit 5b2acc3a4f
8 changed files with 122 additions and 16 deletions

View File

@@ -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;