]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/statbox.cpp
define WM_CONTEXTMENU if the standard headers don't
[wxWidgets.git] / src / motif / statbox.cpp
index f836c53de3cb4a8327155d580aa9f6fb50afce5e..fe2c52163cdb7f6617add66aeb9cb30de84b23c6 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,11 +124,10 @@ bool wxStaticBox::Create(wxWindow *parent, wxWindowID id,
                 NULL);
     }
     
-    SetCanAddEventHandler(TRUE);
     AttachWidget (parent, m_mainWidget, NULL, pos.x, pos.y, size.x, size.y);
     ChangeBackgroundColour();
 
-    return TRUE;
+    return true;
 }
 
 wxStaticBox::~wxStaticBox()