#ifndef WX_PRECOMP
#include "wx/defs.h"
+#include "wx/window.h"
+#include "wx/frame.h"
+#include "wx/utils.h"
#endif
-#ifdef __WIN95__
+#if defined(__WIN95__) && !defined(__TWIN32__)
-#include <wx/msw/taskbar.h>
-#include <string.h>
#include <windows.h>
+#include <string.h>
+#include <wx/msw/taskbar.h>
#include <wx/msw/private.h>
+#ifndef __TWIN32__
#ifdef __GNUWIN32__
#include <wx/msw/gnuwin32/extra.h>
#endif
+#endif
+
+#ifdef __SALFORDC__
+#include <shellapi.h>
+#endif
LRESULT APIENTRY _EXPORT wxTaskBarIconWindowProc( HWND hWnd, unsigned msg,
UINT wParam, LONG lParam );
rval = win->PopupMenu(menu, 0, 0);
win->PopEventHandler(FALSE);
- delete win;
+ win->Destroy();
return rval;
}