]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/frame.cpp
don't show scrollbars at all when the window is big enough
[wxWidgets.git] / src / motif / frame.cpp
index fac74a74a7a64a45068afae5398353505ad06218..5984fe2b591df5a80c46e3b4fa6d500e4c6a642d 100644 (file)
     #pragma implementation "frame.h"
 #endif
 
-#include "wx/frame.h"
+
+#ifdef __VMS
+#define XtDisplay XTDISPLAY
+#define XtWindow XTWINDOW
+#define XtScreen XTSCREEN
+#endif
+
+# include "wx/frame.h"
 #include "wx/statusbr.h"
 #include "wx/toolbar.h"
 #include "wx/menuitem.h"
@@ -132,7 +139,7 @@ bool wxFrame::Create(wxWindow *parent,
                      const wxString& name)
 {
     if ( parent )
-        AddChild(this);
+        parent->AddChild(this);
     else
         wxTopLevelWindows.Append(this);
 
@@ -921,4 +928,3 @@ static void wxFrameEventHandler(Widget    wid,
     }
     *continueToDispatch = True;
 }
-