if ( !m_frameStatusBar )
return;
- // native status bar positions itself, but we must forward the WM_SIZE
- // messages to it
-#if wxUSE_NATIVE_STATUSBAR
- wxStatusBar95 *sb = wxDynamicCast(m_frameStatusBar, wxStatusBar95);
- if ( sb )
- {
- wxSizeEvent event(GetSize(), sb->GetId());
- event.SetEventObject(sb);
-
- sb->GetEventHandler()->ProcessEvent(event);
- }
- else
-#endif // wxUSE_NATIVE_STATUSBAR
- {
- int w, h;
- GetClientSize(&w, &h);
- int sw, sh;
- m_frameStatusBar->GetSize(&sw, &sh);
-
- // Since we wish the status bar to be directly under the client area,
- // we use the adjusted sizes without using wxSIZE_NO_ADJUSTMENTS.
- m_frameStatusBar->SetSize(0, h, w, sh);
- }
+ int w, h;
+ GetClientSize(&w, &h);
+ int sw, sh;
+ m_frameStatusBar->GetSize(&sw, &sh);
+
+ // Since we wish the status bar to be directly under the client area,
+ // we use the adjusted sizes without using wxSIZE_NO_ADJUSTMENTS.
+ m_frameStatusBar->SetSize(0, h, w, sh);
}
#endif // wxUSE_STATUSBAR