]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/frame.cpp
Prevent bogus event which GTK 2.4 sends after
[wxWidgets.git] / src / os2 / frame.cpp
index 18399f06ece2486a3a79eef06e7c06f7cafe9c4a..b885819f933ba54679068522485f7ec95e801f0d 100644 (file)
@@ -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;