+#if wxUSE_STATUSBAR
+
+void wxFrame::PositionStatusBar()
+{
+ if ( m_frameStatusBar )
+ {
+ wxCoord heightBar = m_frameStatusBar->GetSize().y;
+ m_frameStatusBar->SetSize(0, GetClientSize().y,
+ GetClientSize().x, heightBar);
+ }
+}
+
+wxStatusBar* wxFrame::CreateStatusBar(int number, long style,
+ wxWindowID id, const wxString& name)
+{
+ wxStatusBar *bar = wxFrameBase::CreateStatusBar(number, style, id, name);
+ SendSizeEvent();
+ return bar;
+}
+
+#endif // wxUSE_STATUSBAR
+