]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/statusbr.cpp
Added GetMainWidget() to fix bug that was causing crashes under wxMOTIF.
[wxWidgets.git] / src / generic / statusbr.cpp
index 01321e734a859311617644f02ac75f4e88e4de97..00940d7e0e7044eb4444d53b8f80c7e8e5370fdb 100644 (file)
 
 #ifdef __WXMSW__
 #include <windows.h>
-
-#ifdef DrawText
-#undef DrawText
-#endif
-
+#include "wx/msw/winundef.h"
 #endif
 
 #if !USE_SHARED_LIBRARY
@@ -84,7 +80,7 @@ bool wxStatusBar::Create(wxWindow *parent, wxWindowID id,
   m_borderX = wxTHICK_LINE_BORDER;
   m_borderY = wxTHICK_LINE_BORDER;
 
-  bool success = wxWindow::Create(parent, id, pos, size, style, name);
+  bool success = wxWindow::Create(parent, id, pos, size, style | wxTAB_TRAVERSAL, name);
 
   // Don't wish this to be found as a child
   parent->GetChildren().DeleteObject(this);