#include "wx/app.h"
#ifdef __VMS__
- #pragma message disable nosimpint
+#define XtDisplay XTDISPLAY
+#define XtParent XTPARENT
+#define XtScreen XTSCREEN
+#define XtWindow XTWINDOW
+#pragma message disable nosimpint
#endif
#include <Xm/Xm.h>
// wxTopLevelWindowMotif implementation
// ===========================================================================
-wxTopLevelWindowMotif::~wxTopLevelWindowMotif()
+void wxTopLevelWindowMotif::PreDestroy()
{
wxTopLevelWindows.DeleteObject(this);
wxTLWEventHandler,
(XtPointer)this );
}
+}
- DoDestroy();
-
+wxTopLevelWindowMotif::~wxTopLevelWindowMotif()
+{
SetMainWidget( (WXWidget)0 );
// If this is the last top-level window, exit.
- if (wxTheApp && (wxTopLevelWindows.Number() == 0))
+ if (wxTheApp && (wxTopLevelWindows.GetCount() == 0))
{
wxTheApp->SetTopWindow(NULL);