#ifndef WX_PRECOMP
#include "wx/defs.h"
+#include "wx/window.h"
+#include "wx/frame.h"
+#include "wx/utils.h"
#endif
#ifdef __WIN95__
-#include <wx/msw/taskbar.h>
-#include <string.h>
#include <windows.h>
+#include <string.h>
+#include <wx/msw/taskbar.h>
#include <wx/msw/private.h>
#ifdef __GNUWIN32__
rval = win->PopupMenu(menu, 0, 0);
win->PopEventHandler(FALSE);
- delete win;
+ win->Destroy();
return rval;
}