]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/statbox.cpp
fix for opening files with VC++ 8 (closes bug 994337)
[wxWidgets.git] / src / motif / statbox.cpp
index f836c53de3cb4a8327155d580aa9f6fb50afce5e..5bdf05ea044c030b20a8b57269100130db3029ca 100644 (file)
@@ -9,10 +9,13 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "statbox.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #ifdef __VMS
 #define XtDisplay XTDISPLAY
 #endif
@@ -121,7 +124,6 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID id,
                 NULL);
     }
     
-    SetCanAddEventHandler(TRUE);
     AttachWidget (parent, m_mainWidget, NULL, pos.x, pos.y, size.x, size.y);
     ChangeBackgroundColour();