#include "wx/mdi.h"
#include "wx/toolbar.h"
#include "wx/statusbr.h"
+ #include "wx/menuitem.h"
#endif // WX_PRECOMP
#include "wx/os2/private.h"
-#include "wx/generic/statusbr.h"
-
-#include "wx/menuitem.h"
-
// ----------------------------------------------------------------------------
// globals
// ----------------------------------------------------------------------------
,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;