rem Tex2RTF
zip32 -@ %dest\tex2rtf.zip < %src\distrib\msw\tex2rtf.rsp
+copy %src\docs\changes.txt %dest
+copy %src\docs\msw\install.txt %dest\install_msw.txt
+copy %src\docs\motif\install.txt %dest\install_motif.txt
+copy %src\docs\gtk\install.txt %dest\install_gtk.txt
+copy %src\docs\readme.txt %dest
+
cd %dest
echo wxWindows archived.
/* Stand-ins for GDK types */
typedef gulong GdkAtom;
-typedef struct _GdkVisual GdkVisual;
typedef struct _GdkColor GdkColor;
typedef struct _GdkColormap GdkColormap;
typedef struct _GdkFont GdkFont;
typedef struct _GtkToolbar GtkToolbar;
typedef struct _GtkNotebook GtkNotebook;
typedef struct _GtkNotebookPage GtkNotebookPage;
+
+#endif
+
+// This is required because of clashing macros in windows.h, which may be
+// included before or after wxWindows classes, and therefore must be
+// disabled here before any significant wxWindows headers are included.
+#ifdef __WXMSW__
+#ifdef GetClassInfo
+#undef GetClassInfo
+#endif
+
+#ifdef GetClassName
+#undef GetClassName
+#endif
+
+#ifdef DrawText
+#undef DrawText
+#endif
+
+#ifdef GetCharWidth
+#undef GetCharWidth
+#endif
+
+#ifdef StartDoc
+#undef StartDoc
+#endif
+
+#ifdef FindWindow
+#undef FindWindow
+#endif
+
+#ifdef FindResource
+#undef FindResource
+#endif
#endif
+ // __WXMSW__
#endif
// _WX_DEFS_H_
#include "wx/control.h"
#include "wx/event.h"
+#include "wx/textctrl.h"
#ifdef __GNUWIN32__
# ifdef GetFirstChild
/////////////////////////////////////////////////////////////////////////////
// check if to use precompiled headers
-#if (defined(__BORLANDC__) || defined(_MSC_VER) || defined(__WATCOMC__) || defined(__GNUWIN32__)) && defined(__WXMSW__)
+#if (defined(__BORLANDC__) || defined(_MSC_VER) || defined(__WATCOMC__)) && defined(__WXMSW__)
#if !NOPCH
#define WX_PRECOMP
#endif
#include <windows.h> // for GetTempFileName
#elif (defined(__UNIX__) || defined(__GNUWIN32__))
#include <unistd.h>
+#ifdef __GNUWIN32__
+ #include <windows.h>
+#endif
#elif (defined(__WXSTUBS__))
// Have to ifdef this for different environments
#include <io.h>
#define NO_JOYGETPOSEX
#endif
+#include <wx/window.h>
#include <wx/msw/joystick.h>
IMPLEMENT_DYNAMIC_CLASS(wxJoystick, wxObject)
#endif
#ifndef WX_PRECOMP
-#include "wx.h"
+#include "wx/wx.h"
#endif
#if defined(__WIN95__)
GENERICOBJS= \
$(GENDIR)/choicdgg.$(OBJSUFF) \
- $(GENDIR)/colrdlgg.$(OBJSUFF) \
$(GENDIR)/dirdlgg.$(OBJSUFF) \
- $(GENDIR)/fontdlgg.$(OBJSUFF) \
$(GENDIR)/gridg.$(OBJSUFF) \
$(GENDIR)/laywin.$(OBJSUFF) \
- $(GENDIR)/msgdlgg.$(OBJSUFF) \
$(GENDIR)/panelg.$(OBJSUFF) \
$(GENDIR)/prop.$(OBJSUFF) \
$(GENDIR)/propform.$(OBJSUFF) \
$(GENDIR)/tabg.$(OBJSUFF) \
$(GENDIR)/textdlgg.$(OBJSUFF)
+# $(GENDIR)/colrdlgg.$(OBJSUFF) \
+# $(GENDIR)/fontdlgg.$(OBJSUFF) \
# $(GENDIR)/prntdlgg.$(OBJSUFF) \
# $(GENDIR)/printps.$(OBJSUFF) \
+# $(GENDIR)/msgdlgg.$(OBJSUFF) \
COMMONOBJS = \
$(COMMDIR)/config.$(OBJSUFF) \
#ifndef WX_PRECOMP
#include <stdio.h>
+#include <wx/utils.h>
+#include <wx/brush.h>
#endif
#ifdef __WIN95__
#pragma hdrstop
#endif
+#include <windows.h>
+
#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 <wx/msw/taskbar.h>
#include <wx/msw/private.h>
#ifdef __GNUWIN32__
#endif
#ifndef WX_PRECOMP
- #include "wx.h"
+ #include "wx/wx.h"
#endif
#if defined(__WIN95__)
#undef GetNextSibling
#endif
+#ifdef GetClassInfo
+#undef GetClassInfo
+#endif
+
#include "wx/msw/treectrl.h"
// Bug in headers, sometimes