]> git.saurik.com Git - wxWidgets.git/commitdiff
Changed __GTK__, __WINDOWS__ and __MOTIF__ to __WXGTK__, __WXMSW__ and __WXMOTIF__
authorKarsten Ballüder <ballueder@usa.net>
Fri, 10 Jul 1998 14:15:17 +0000 (14:15 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Fri, 10 Jul 1998 14:15:17 +0000 (14:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

154 files changed:
docs/symbols.txt
include/wx/app.h
include/wx/bitmap.h
include/wx/bmpbuttn.h
include/wx/brush.h
include/wx/button.h
include/wx/checkbox.h
include/wx/choice.h
include/wx/clipbrd.h
include/wx/cmndata.h
include/wx/colordlg.h
include/wx/combobox.h
include/wx/control.h
include/wx/cursor.h
include/wx/dc.h
include/wx/dcclient.h
include/wx/dcmemory.h
include/wx/dcprint.h
include/wx/dcscreen.h
include/wx/dde.h
include/wx/defs.h
include/wx/dialog.h
include/wx/dirdlg.h
include/wx/dnd.h
include/wx/filedlg.h
include/wx/font.h
include/wx/fontdlg.h
include/wx/frame.h
include/wx/gauge.h
include/wx/gdicmn.h
include/wx/gdiobj.h
include/wx/generic/colrdlgg.h
include/wx/generic/helpxlp.h
include/wx/generic/msgdlgg.h
include/wx/help.h
include/wx/icon.h
include/wx/imaglist.h
include/wx/joystick.h
include/wx/listbox.h
include/wx/listctrl.h
include/wx/log.h
include/wx/mdi.h
include/wx/menu.h
include/wx/metafile.h
include/wx/minifram.h
include/wx/msgdlg.h
include/wx/msw/bitmap.h
include/wx/notebook.h
include/wx/odbc.h
include/wx/palette.h
include/wx/pen.h
include/wx/pnghand.h
include/wx/postscrp.h
include/wx/print.h
include/wx/printdlg.h
include/wx/radiobox.h
include/wx/radiobut.h
include/wx/region.h
include/wx/scrolbar.h
include/wx/settings.h
include/wx/setup.h
include/wx/slider.h
include/wx/spinbutt.h
include/wx/statbmp.h
include/wx/statbox.h
include/wx/stattext.h
include/wx/tabctrl.h
include/wx/tbar95.h
include/wx/tbarbase.h
include/wx/tbarmsw.h
include/wx/textctrl.h
include/wx/timer.h
include/wx/toolbar.h
include/wx/treectrl.h
include/wx/utils.h
include/wx/window.h
install/gtk/configure
install/gtk/configure.in
samples/controls/controls.cpp
samples/dialogs/dialogs.cpp
samples/dialogs/dialogs.h
samples/docview/docview.cpp
samples/docview/view.cpp
samples/dynamic/minimal.cpp
samples/grid/test.cpp
samples/internat/internat.cpp
samples/joytest/joytest.cpp
samples/layout/layout.cpp
samples/listctrl/listtest.cpp
samples/mdi/mdi.cpp
samples/mdi/mdi.h
samples/minimal/minimal.cpp
samples/nativdlg/dialog1.rc
samples/nativdlg/makefile.b32
samples/nativdlg/makefile.nt
samples/png/pngdemo.cpp
samples/printing/printing.cpp
samples/resource/resource.cpp
samples/splitter/test.cpp
samples/thread/test.cpp
samples/treectrl/treetest.cpp
samples/validate/validate.cpp
src/common/cmndata.cpp
src/common/config.cpp
src/common/date.cpp
src/common/datstrm.cpp
src/common/docview.cpp
src/common/file.cpp
src/common/fileconf.cpp
src/common/filefn.cpp
src/common/gdicmn.cpp
src/common/list.cpp
src/common/log.cpp
src/common/memory.cpp
src/common/odbc.cpp
src/common/postscrp.cpp
src/common/prntbase.cpp
src/common/resource.cpp
src/common/string.cpp
src/common/tbarbase.cpp
src/common/textfile.cpp
src/common/timercmn.cpp
src/common/utilscmn.cpp
src/generic/gridg.cpp
src/generic/helpxlp.cpp
src/generic/panelg.cpp
src/generic/prntdlgg.cpp
src/generic/scrolwin.cpp
src/generic/statusbr.cpp
src/gtk/setup/setup.hin
src/gtk1/setup/setup.hin
src/makeg95.env
src/makemsc.env
src/makesc.env
src/makewat.env
src/msw/app.cpp
src/msw/data.cpp
src/msw/font.cpp
src/msw/helpwin.cpp
src/msw/makefile.b32
src/msw/ownerdrw.cpp
src/msw/printdlg.cpp
src/msw/utils.cpp
src/msw/window.cpp
src/ntwxwin.mak
utils/dialoged/src/dlghndlr.cpp
utils/dialoged/src/editrpal.cpp
utils/dialoged/src/reseditr.cpp
utils/dialoged/src/reseditr.h
utils/dialoged/src/reswrite.cpp
utils/dialoged/src/winprop.cpp
utils/wxprop/src/prop.cpp
utils/wxprop/src/propform.cpp
utils/wxprop/src/proplist.cpp

index 1b72400ec260dbc7e4b18e8117be4d74b9182357..40c205c89721ba6a2b377219f64c94fc50d5ba06 100644 (file)
@@ -4,11 +4,11 @@ GUIs:
 -----
 
 __X__           any X, but not GTK
-__MOTIF__       Motif
+__WXMOTIF__       Motif
 __XT__          Xt; mutually exclusive with WX_MOTIF (?)
-__GTK__         GTK
+__WXGTK__         GTK
 __XVIEW__       Obsolete!
-__WINDOWS__     Any Windows
+__WXMSW__     Any Windows
 __MAC__         MacOS
 __UNIX__        any Unix
 __WIN95__       GUI for Windows 95 and above; NT 4.0 and above.
@@ -16,6 +16,10 @@ __WIN32__       WIN32 API
 __NT__          Windows NT
 __CURSES__      CURSES
 
+In fact, they should better all start with __WX instead of __ only. 
+The only GUIs implemented for 2.0 are __WXGTK__, __WXMSW__ and __WXMOTIF__
+yet. Any new ones, please start the define with __WX.
+
 OSes/machines:
 
 __HPUX__
index e4fd1864864b9a5ae810d91a47cf6c0a11bacbf9..c4a3d4ba43fe7e573cc6106ba56a8eae27914622 100644 (file)
 #ifndef __APPH_BASE__
 #define __APPH_BASE__
 
-#ifndef __GTK__
+#ifndef __WXGTK__
 class WXDLLEXPORT wxApp;
 typedef wxApp* (*wxAppInitializerFunction) (void);
 #endif
 
 #include "wx/object.h"
 
-#ifdef __GTK__
+#ifdef __WXGTK__
 typedef wxObject* (*wxAppInitializerFunction) (void);  // returning wxApp* won't work with gcc
 #endif
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/app.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/app.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/app.h"
 #endif
 
index b3cf33ce7f97f134ada612b684156fc808ef48f6..d1ac7ade347ffe9560f5a65f4ecf15cbd22f4995 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __BITMAPH_BASE__
 #define __BITMAPH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/bitmap.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/bitmap.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/bitmap.h"
 #endif
 
index 0f9e160d647b3caaae65df2618eca93e9ba571a0..9c5dd47316a82de63c6342b093e481a78d0d1562 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __BMPBUTTONH_BASE__
 #define __BMPBUTTONH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/bmpbuttn.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/bmpbuttn.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/bmpbuttn.h"
 #endif
 
index bc05548735c9c9b38b974815d62465feda6d648e..fd7657e4d6c73945c04037db8de7109e94184911 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __BRUSHH_BASE__
 #define __BRUSHH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/brush.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/brush.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/brush.h"
 #endif
 
index 950435db032c400b46a229d9841b2677873b25e1..b109fc41ead2c1dd66e6c2bfc9008f5202df0e18 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __BUTTONH_BASE__
 #define __BUTTONH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/button.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/button.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/button.h"
 #endif
 
index e4868ee671c89deba1ed822d31bab5c8cc1e53fe..44603e80183e864f965b4f34ea1fa0f42eba114b 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __CHECKBOXH_BASE__
 #define __CHECKBOXH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/checkbox.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/checkbox.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/checkbox.h"
 #endif
 
index 5a421268ed8617bf01e0cf3a4d6360ae921b01ff..4bda50c2f482af6e19447df9039f8147d80654a5 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __CHOICEH_BASE__
 #define __CHOICEH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/choice.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/choice.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/choice.h"
 #endif
 
index f5e8571912fecec6d006c38ffe714c7e17b6a602..6dbcfe87eb0100302f867a06b1a951212c3fae5c 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __CLIPBRDH_BASE__
 #define __CLIPBRDH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/clipbrd.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/clipbrd.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/clipbrd.h"
 #endif
 
index abb8c5da514808aa6132c7e3fd5f0c3fb2bcebe5..bb02f9ec6c0a4286a9d62470a1c528412091d654 100644 (file)
@@ -82,7 +82,7 @@ class WXDLLEXPORT wxPrintData: public wxObject
   DECLARE_DYNAMIC_CLASS(wxPrintData)
 
  public:
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   void *printData;
 #endif
   int printFromPage;
@@ -137,7 +137,7 @@ class WXDLLEXPORT wxPrintData: public wxObject
 
   void operator=(const wxPrintData& data);
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   // Convert to/from the PRINTDLG structure
   void ConvertToNative(void);
   void ConvertFromNative(void);
index 8e113d039ef91ce92dfe58269b15fb83d3923468..e3b0a04c79f627716cf07aa633f9e7fa94d57170 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __COLORDLGH_BASE__
 #define __COLORDLGH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/colordlg.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/generic/colrdlgg.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/generic/colrdlgg.h"
 #endif
 
index e21e3af6ecef8fbdab718986a6d3abd4571251dc..709a399e2834e33a1a2f4c09b546b1f4d0fcb31a 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __COMBOBOXH_BASE__
 #define __COMBOBOXH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/combobox.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/combobox.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/combobox.h"
 #endif
 
index bb5003ae2059f197d43a321464c384a2799a4563..b424a69cdb0b298846c0dc3af676b2d35af7a45f 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __CONTROLH_BASE__
 #define __CONTROLH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/control.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/control.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/control.h"
 #endif
 
index b56d15ec5bfb29c0512f09dbc882600573c27179..d7e15b76208cec253d713248ae0e21c52eaea79f 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __CURSORH_BASE__
 #define __CURSORH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/cursor.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/cursor.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/cursor.h"
 #endif
 
index be0b417d981892411849d3866621218290b01f28..8b3f3230c504828f9228f6f6498d9407f72ca34e 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __DCH_BASE__
 #define __DCH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/dc.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/dc.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/dc.h"
 #endif
 
index 795f9d0c8deccb2c147d452f729575e70bbd7a36..5db0f6127382e7b5fb7af27aed9c59c819c8edc1 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __DCCLIENTH_BASE__
 #define __DCCLIENTH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/dcclient.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/dcclient.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/dcclient.h"
 #endif
 
index 256db8c2f95bebb3531ff87164cbb2af9c5aed3a..204be5723f300db72a2baabce5a4b28661f27c22 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __DCMEMORYH_BASE__
 #define __DCMEMORYH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/dcmemory.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/dcmemory.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/dcmemory.h"
 #endif
 
index d84dd73ad8933334f6dfd575684c9e51ed88e909..cad351f7d884b9a28f1b5889dc61cc329abacff7 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __DCPRINTH_BASE__
 #define __DCPRINTH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/dcprint.h"
 #endif
 
index 9dde7580d3a8925047ce11c7a39b83b2b3871e63..9295477cd9719b86f840e78a41b50f80e3cc0337 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __DCSCREENH_BASE__
 #define __DCSCREENH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/dcscreen.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/dcscreen.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/dcscreen.h"
 #endif
 
index e103c7882eda853e849a7aa6ecf7d10cd1c8a795..765190b157e17b9b71c95c26358faa261452929c 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __DDEH_BASE__
 #define __DDEH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/dde.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/dde.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/dde.h"
 #endif
 
index aac88fdfa96fbaedcf9c0d325286536ea3f7eb9e..fa02c39ec5fbec57272a0e663904633849664cb8 100644 (file)
@@ -16,7 +16,7 @@
 #pragma interface "defs.h"
 #endif
 
-#ifdef __GTK__
+#ifdef __WXGTK__
 
 #include "glib.h"
 #include "gdk/gdk.h"
 //////////////////////////////////////////////////////////////////////////////////
 // Currently Only MS-Windows/NT, XView and Motif are supported
 //
-#if defined(__HPUX__) && !defined(__MOTIF__)
-# define __MOTIF__
+#if defined(__HPUX__) && !defined(__WXMOTIF__)
+# define __WXMOTIF__
 #endif
-#if defined(__MOTIF__)
+#if defined(__WXMOTIF__)
 # define __X__
-#elif defined(__WINDOWS__) || defined(__WINDOWS_386__) || defined(__NT__) || defined(__MSDOS__) 
-# ifndef __WINDOWS__
-#  define __WINDOWS__
+#elif defined(__WXMSW__) || defined(__WINDOWS_386__) || defined(__NT__) || defined(__MSDOS__) 
+# ifndef __WXMSW__
+#  define __WXMSW__
 # endif
 #endif
 
 #endif
 
 // Make sure the environment is set correctly
-#if defined(__WINDOWS__) && defined(__X__)
+#if defined(__WXMSW__) && defined(__X__)
 # error "Target can't be both X and Windows"
-#elif !defined(__MOTIF__) && !defined(__WINDOWS__) && !defined(__GTK__) && !defined(__MAC__) && !defined(__X__)
-#error "No Target! Use -D[__MOTIF__|__GTK__|__WINDOWS__|__MAC__]"
+#elif !defined(__WXMOTIF__) && !defined(__WXMSW__) && !defined(__WXGTK__) && !defined(__MAC__) && !defined(__X__)
+#error "No Target! Use -D[__WXMOTIF__|__WXGTK__|__WXMSW__|__MAC__]"
 #endif
 
-#if defined(__MOTIF__) || defined(__GTK__)
+#if defined(__WXMOTIF__) || defined(__WXGTK__)
 
 // Bool is now obsolete, use bool instead
 // typedef int Bool;
@@ -85,7 +85,7 @@
 # define Bool_DEFINED
 #endif
 
-#elif defined(__WINDOWS__)
+#elif defined(__WXMSW__)
 
 #ifndef TRUE
 # define TRUE  1
@@ -119,7 +119,7 @@ typedef int wxWindowID;
  * Making or using wxWindows as a Windows DLL
  */
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 
 #ifdef __BORLANDC__
 
@@ -230,8 +230,8 @@ enum  ErrCode
 #endif
 
 #ifndef __UNIX__                     // Windows
-  #ifndef __WINDOWS__
-    #define __WINDOWS__
+  #ifndef __WXMSW__
+    #define __WXMSW__
   #endif
 
   #if   defined(_MSC_VER)
@@ -248,7 +248,7 @@ enum  ErrCode
 
 #if     defined(__UNIX__)
   #define FILE_PATH_SEPARATOR   ('/')
-#elif   defined(__WINDOWS__)
+#elif   defined(__WXMSW__)
   #define FILE_PATH_SEPARATOR   ('\\')
 #else
   #error "don't know path separator for this platform"
@@ -833,7 +833,7 @@ enum {
 #define wxID_YES                5103
 #define wxID_NO                 5104
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 // Stand-ins for Windows types, to avoid
 // #including all of windows.h
 
index 78c9a79d886cf52f08c6699548dc83444e79e5f2..a459bff88d77fb7b7bf5bc67c6163e2faca51ad3 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __DIALOGH_BASE__
 #define __DIALOGH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/dialog.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/dialog.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/dialog.h"
 #endif
 
index 518c9912acec0b126cb7df20723304b8388987e8..e1216cc9ca0c2ca8e1562062b5638ec808a21248 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __DIRDLGH_BASE__
 #define __DIRDLGH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/dirdlg.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/dirdlg.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/dirdlg.h"
 #endif
 
index 2be49007d9c7db51d94df277c4d52a75466ffdf7..2dab36f0babea36398c564c22830dbf9fd4a979a 100644 (file)
@@ -1,12 +1,12 @@
 #ifndef __DNDH_BASE__
 #define __DNDH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/ole/dropsrc.h"
 #include "wx/msw/ole/droptgt.h"
 #include "wx/msw/ole/dataobj.h"
-#elif defined(__MOTIF__)
-#elif defined(__GTK__)
+#elif defined(__WXMOTIF__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/dnd.h"
 #endif
 
index f877d9b471817b20b5d4eef2e55070577177f5f7..447b3db1b44f964b9207d6f8269aa862d88a1942 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __FILEDLGH_BASE__
 #define __FILEDLGH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/filedlg.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/filedlg.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/filedlg.h"
 #endif
 
index 438c623973d4a6050ed8984f61695275414726db..bcfcccd8129d2ef1fe35505b2247056794893804 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __FONTH_BASE__
 #define __FONTH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/font.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/font.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/font.h"
 #endif
 
index ca180e0bfe9d1d4096a04e00ff35495dddd7dd7d..e30ce09aaf8221a96def6cde5a23468e7d35fe21 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __FONTDLGH_BASE__
 #define __FONTDLGH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/fontdlg.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/generic/fontdlgg.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/generic/fontdlgg.h"
 #endif
 
index 4b42b3ac4c0c808830ab2a050090c1d9a3034d9e..82cf407fe67393a67d393053db5b953a64f0520b 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __FRAMEH_BASE__
 #define __FRAMEH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/frame.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/frame.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/frame.h"
 #endif
 
index d9bdbf7faa98205208639fa6edb802c23cde1287..9bf0970bfd929588b4f98ea898314fb711e085f7 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __GAUGEH_BASE__
 #define __GAUGEH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/gauge.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/gauge.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/gauge.h"
 #endif
 
index dec74b5bb9136c100f0423cf702b0e82ff0ed79f..f0b52eefdee26de52d80cfe055c12a5e07e9cd4f 100644 (file)
 #include "wx/hash.h"
 #include "wx/setup.h"
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include "wx/msw/colour.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/colour.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/colour.h"
 #endif
 
@@ -98,7 +98,7 @@ class WXDLLEXPORT wxRealPoint
 class WXDLLEXPORT wxPoint
 {
  public:
-#if defined(__WINDOWS__) && !defined(__WIN32__)
+#if defined(__WXMSW__) && !defined(__WIN32__)
   int x;
   int y;
 #else
@@ -330,7 +330,7 @@ extern void WXDLLEXPORT wxSetCursor(const wxCursor& cursor);
 
 // Useful macro for create icons portably
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 # define wxICON(X) wxIcon(X##_icon);
 #elif defined(__X__)
 # define wxICON(X) wxIcon(X##_bits, X##_width, X##_height);
index aa3606dbdf95b7787bd9baaa4901963c5f954746..4b980034733a501d222b9838d66f7e5c5dba4355 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __GDIOBJH_BASE__
 #define __GDIOBJH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/gdiobj.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/gdiobj.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/gdiobj.h"
 #endif
 
index f82865066b868315e1534840913f800355fbce72..6229f6d1442456f45fc17569b330899e46c7560c 100644 (file)
@@ -116,7 +116,7 @@ class WXDLLEXPORT wxGenericColourDialog: public wxDialog
 DECLARE_EVENT_TABLE()
 };
 
-#ifdef __GTK__
+#ifdef __WXGTK__
 typedef wxGenericColourDialog wxColourDialog;
 #endif
 
index 80587b3d073052b41f690ff6f64e4fe7436bc6f0..5c0b26d257a0193c78e10ed5d4edc7edb5f6d7fd 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "wx/helpbase.h"
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include "wx/dde.h"
 #else
 // Or whatever it'll be called
@@ -38,7 +38,7 @@ class WXDLLEXPORT wxXLPHelpController;
 // wxHelp process and the application
 class WXDLLEXPORT wxXLPHelpConnection: public
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
  wxDDEConnection
 #else
  wxTCPConnection
@@ -62,7 +62,7 @@ class WXDLLEXPORT wxXLPHelpConnection: public
 // controlling the wxHelp process
 class WXDLLEXPORT wxXLPHelpClient: public
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
  wxDDEClient
 #else
  wxTCPClient
index fb8aa5cc65c3c40258eb64e5e6a0a303cbf50323..724d4c6e9d8c6d1926de5ba08ae2306b4ce79bdd 100644 (file)
@@ -40,7 +40,7 @@ public:
 DECLARE_EVENT_TABLE()
 };
 
-#ifndef __WINDOWS__
+#ifndef __WXMSW__
 #define wxMessageDialog wxGenericMessageDialog
 
 int wxMessageBox(const wxString& message, const wxString& caption = wxMessageBoxCaptionStr, 
index f1ba186db5c35bc81eddb3c19d03a48da9e0ab08..0fe92b70fd6055bfc5c6e3bcd8ddebc986c9a763 100644 (file)
@@ -1,18 +1,18 @@
 #ifndef __HELPH_BASE__
 #define __HELPH_BASE__
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include "wx/msw/helpwin.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/generic/helphtml.h"
 #else
 #include "wx/generic/helpxlp.h"
 #endif
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #define wxHelpController wxWinHelpController
 #define classwxHelpController classwxWinHelpController
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #define wxHelpController wxHTMLHelpController
 #define classwxHelpController classwxHTMLHelpController
 #else
index cb6bc66b60b9795ae82c5d2a70f87610613738d9..1dbcd1443ba13c52ead1d518b9d530f2b86c0d9f 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __ICONH_BASE__
 #define __ICONH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/icon.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/icon.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/icon.h"
 #endif
 
index 12774bdff41e8a6e96e6081c5b5aa45465b51c7d..db6b8bdcfd201bdc40e03eb631e8523a4d9fdf5e 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __IMAGLISTH_BASE__
 #define __IMAGLISTH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/imaglist.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/generic/imaglist.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/generic/imaglist.h"
 #endif
 
index b6aff395c670c4e72a53fcdb327ef0630059ea2b..b0ff1ef04dfc1f80b93bbfb3ef861c17df3f17d7 100644 (file)
@@ -1,10 +1,10 @@
 #ifndef __JOYSTICKH_BASE__
 #define __JOYSTICKH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/joystick.h"
-#elif defined(__MOTIF__)
-#elif defined(__GTK__)
+#elif defined(__WXMOTIF__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/joystick.h"
 #endif
 
index 545ddb54dc9f36f5cc4135b4dd7f970baf501369..582229682bdb9902581447dbcbe84e031ff6a204 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __LISTBOXH_BASE__
 #define __LISTBOXH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/listbox.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/listbox.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/listbox.h"
 #endif
 
index 1025f70334938c05bb5bbc58fd97b8ab1d8bf73e..72f594add6583b30087e68c562de61be05a040ad 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __LISTCTRLH_BASE__
 #define __LISTCTRLH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/listctrl.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/generic/listctrl.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/generic/listctrl.h"
 #endif
 
index bad161e60f911b332a3d907f31fa71eae1b6c871..353a3cd688eb621079e269391758e7aca04eff44 100644 (file)
@@ -42,7 +42,7 @@ enum
 #define wxTraceResAlloc 0x0004  // trace GDI resource allocation
 #define wxTraceRefCount 0x0008  // trace various ref counting operations
 
-#ifdef  __WINDOWS__
+#ifdef  __WXMSW__
   #define wxTraceOleCalls 0x0100  // OLE interface calls
 #endif
 
index fade7fa0dd9cb32f1e25aad6e975dbc63a23cf56..39298703ccfe5bf7fcdd347745aaa41c258f4aa1 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __MDIH_BASE__
 #define __MDIH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/mdi.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/mdi.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/mdi.h"
 #endif
 
index 9a9335729d123bfdde281f1e6119b31362f86455..f845f4a5e37c105456dfdcaf38a947e7b29fe21f 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __MENUH_BASE__
 #define __MENUH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/menu.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/menu.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/menu.h"
 #endif
 
index 20e53dd8946671b3dfd3bfac4143865c6c2cc7ec..d3eefe4240ea76cc5fbe96d29152b06ba64b6bc1 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __METAFILEH_BASE__
 #define __METAFILEH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/metafile.h"
 #endif
 
index d340f57307666ef571342309e122979bfec6702f..7a00d5d74df939261d393815ec76021e105ba1ae 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __MINIFRAMH_BASE__
 #define __MINIFRAMH_BASE_
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/minifram.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/minifram.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/minifram.h"
 #endif
 
index 0771b4631b307453b6c7fb8f46bb18c871fe4f21..28587a318cc0a9a14a9bd05835247317e7a6a74f 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __MSGDLGH_BASE__
 #define __MSGDLGH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/msgdlg.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/generic/msgdlgg.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/generic/msgdlgg.h"
 #endif
 
index 4610024f792f401eb1b6d7e32a97bf5c4b902971..cbe8b012fcffec68b23d8df185981870f6000314 100644 (file)
@@ -79,7 +79,7 @@ public:
   wxPalette     m_bitmapPalette;
   int           m_quality;
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   WXHBITMAP     m_hBitmap;
   wxDC *        m_selectedInto; // So bitmap knows whether it's been selected into
                       // a device context (for error checking)
index e84263f72d6d755a368bb2cb65078327880f8cd0..92e99ec7e8d9d7042be51559f61749675c2515ce 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __NOTEBOOKH_BASE__
 #define __NOTEBOOKH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
   #include  "wx/msw/notebook.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
   #error "wxNotebook not implemented under Motif"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
   #include  "wx/gtk/notebook.h"
 #endif
 
index 934e46270b606180155b554ce3132b916f9f7388..ba9d3220cac3e38dece722b6e53da3ecc2b9c81d 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef __ODBCH__
 #define __ODBCH__
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include <windows.h>
 #endif
 
index 1dbae83aa477b07ed3c3664e8c3ed95bcea57499..3c268a4ace74f9cee023b4bce34092049bcd5d09 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __PALETTEH_BASE__
 #define __PALETTEH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/palette.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/palette.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/palette.h"
 #endif
 
index 7a61d50a2a2c4d293c4767384e950d83ddc0f9c1..77c60965d94355e1654880cc6009c4aa6ac13cc4 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __PENH_BASE__
 #define __PENH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/pen.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/pen.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/pen.h"
 #endif
 
index 9ee53318d8d4b925f0346ea7dc663cdbd43cea97..a7b71c7693fe43b7a6080dd7b5def98a1b9a6d16 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __PNGHANDH_BASE__
 #define __PNGHANDH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/pnghand.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/pnghand.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/pnghand.h"
 #endif
 
index 16f231d2c82768002f82446752d664a205272c3d..e8b72bdd692181c353c339a609a5ced2e3f0c488 100644 (file)
@@ -64,7 +64,7 @@ class WXDLLEXPORT wxPostScriptDC: public wxDC
 
   // RR: I define these in wxDC, after all they all do the same everywhere
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   // Splines
   // 3-point spline
   void DrawSpline(long x1, long y1, long x2, long y2, long x3, long y3);
index 0eeee4fe6aff764e470525190579c5c55b16267e..e0d05230f4e1903a3fed9c18f49c51688e3725a2 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef __PRINTH_BASE__
 #define __PRINTH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/printwin.h"
 
 #ifndef wxPrinter
index 9570bfb9feb38d26e2fb5fa12452e9316528fd30..bd0e58ccd09b5024cefdfce0ee6ed31edea38da1 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __PRINTDLGH_BASE__
 #define __PRINTDLGH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/printdlg.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/generic/prntdlgg.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/generic/prntdlgg.h"
 #endif
 
index a3d0c0737a5bced052d57636cd2526fbcbf80de1..fb37c4cf4898ac2dda923d85cace31d1bb7161b4 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __RADIOBOXH_BASE__
 #define __RADIOBOXH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/radiobox.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/radiobox.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/radiobox.h"
 #endif
 
index f6a4eaeb84085879b26d94295ca15179dc1a43b4..f3278b999d209b705a082556a7d16935d202077c 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __RADIOBUTH_BASE__
 #define __RADIOBUTH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/radiobut.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/radiobut.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/radiobut.h"
 #endif
 
index aa208368f3530181636dc46fda3f65ce039dfb65..7ac65692774e8cb48def6554069123a98d06c920 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __REGIONH_BASE__
 #define __REGIONH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/region.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/region.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/region.h"
 #endif
 
index fa67805e0dbebe430b2e26b055e315f5968ce923..50bdbf947a9d4d48ba6ba8ca865a33278be93976 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __SCROLBARH_BASE__
 #define __SCROLBARH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/scrolbar.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/scrolbar.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/scrolbar.h"
 #endif
 
index a3f1901ba8ce156ffa9dfdf5bba605d3c0fa6af7..2bccf12fbb7e87be7a122e5aabe4e559121b4469 100644 (file)
 #define wxSYS_SHOW_SOUNDS             36
 #define wxSYS_SWAP_BUTTONS            37
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/settings.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/settings.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/settings.h"
 #endif
 
index 2f0e6abc4616d91afcd374ee810d8bb7c4bc05de..9eef8da3ef7aa7ab05b99bb58180f94f9f32cdf8 100644 (file)
@@ -2,11 +2,25 @@
 #ifndef __SETUPH_BASE__
 #define __SETUPH_BASE__
 
-#if defined(__WINDOWS__)
+// compatibility code, to be removed asap:
+
+#if ! defined(__WXMSW__) && ! defined(__WXGTK__) && ! defined(__WXMOTIF__)
+#  if defined(__WINDOWS__)
+#    define __WXMSW__
+#  elif defined(__GTK__)
+#    define __WXGTK__
+#  elif defined(__MOTIF__)
+#    define __WXMOTIF__
+#  else
+#    error No __WXxxx__ define set! Please define __WXGTK__,__WXMSW__ or __WXMOTIF__.
+#  endif
+#endif
+
+#if defined(__WXMSW__)
 #include "wx/msw/setup.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/setup.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/setup.h"
 #endif
 
index 2161341a9750a2d385e67e4c51275c94da70170a..2aa7485212af8887bfd14b56e9ae3cc915caebd9 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __SLIDERH_BASE__
 #define __SLIDERH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/slider.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/slider.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/slider.h"
 #endif
 
index 839e13d1f52f9778844c0f8c1466107acaacb943..1e0b6090a1c13b47f7c8d56deea767465c807601 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __SPINBUTTH_BASE__
 #define __SPINBUTTH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/spinbutt.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/spinbutt.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/spinbutt.h"
 #endif
 
index c2f90dd1bb2f238b124799d9cd6e1cdd7a0be4ca..b7464113ee8c7c92953d59f304f7ec2ef3ef27e0 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __STATBMPH_BASE__
 #define __STATBMPH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/statbmp.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/statbmp.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/statbmp.h"
 #endif
 
index cf7d4d36bc07a0d597886048cbc3c66e50a59a49..345a2143071bdf89be6e5a0e09d71eda7800aeb0 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __STATBOXH_BASE__
 #define __STATBOXH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/statbox.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/statbox.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/statbox.h"
 #endif
 
index 0c30862324ef3db05b64878b9753dde8d8adca18..0cf342680b8da237c2b892bb6e8f444b71f12815 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __STATTEXTH_BASE__
 #define __STATTEXTH_BASE_
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/stattext.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/stattext.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/stattext.h"
 #endif
 
index a007866ed784bfcdcab32a23779e8ea8b1d0232d..13306d2212c984a0befe73e56d79cc9646f239a7 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __TABCTRLH_BASE__
 #define __TABCTRLH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/tabctrl.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/tabctrl.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #endif
 
 #endif
index 8025f6b42bd3f7d879cddeb0f9e16524849e749c..eee04659aa1c982ca9c59fb9d0505b1f7cb849ce 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __TBAR95H_BASE__
 #define __TBAR95H_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/tbar95.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/tbar95.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/tbar95.h"
 #endif
 
index b410ac6a829aa13e3bdfd422d308370fe309ec3f..c1b0ce3ad0ed83107efa04d9e584a03ce23bcc2b 100644 (file)
@@ -188,7 +188,7 @@ class WXDLLEXPORT wxToolBarBase : public wxControl
   void OnIdle(wxIdleEvent& event);
 
   // Required to force normal cursor-setting behaviour in Windows
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   virtual void MSWOnMouseMove(int x, int y, const WXUINT flags);
 #endif
 
index 7923368419e0a7fc0571c10da2bbd31b9a06d258..7e5f343b86eea56ed03fe4f215c37091ea798737 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __TBARMSWH_BASE__
 #define __TBARMSWH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/tbarmsw.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/tbarmsw.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/tbarmsw.h"
 #endif
 
index bbe414be2d34265cef13dca0fb6f4ba82a6f12a1..40508446ac42d277184d73b7a4fbcb123813179d 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __TEXTCTRLH_BASE__
 #define __TEXTCTRLH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/textctrl.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/textctrl.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/textctrl.h"
 #endif
 
index 3dbe8093123009a3a0bac4b709f1dd4bfafcbc0f..609cc33ace3daff794af8353eb35bf305a50e41e 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __TIMERH_BASE__
 #define __TIMERH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/timer.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/timer.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/timer.h"
 #endif
 
index b4fe589c176ab17fe7dcd694b9be965fb58c6849..7d4111f2d51eb6f72c96275f7245ab8cf081e14d 100644 (file)
@@ -1,15 +1,15 @@
 #ifndef _TOOLBAR_H_BASE_
 #define _TOOLBAR_H_BASE_
 
-#if defined(__WINDOWS__) && defined(__WIN95__)
+#if defined(__WXMSW__) && defined(__WIN95__)
 #   include "wx/tbar95.h"
 #   define wxToolBar wxToolBar95
 #   define classwxToolBar classwxToolBar95
-#elif defined(__WINDOWS__)
+#elif defined(__WXMSW__)
 #   include "wx/tbarmsw.h"
 #   define wxToolBar wxToolBarMSW
 #   define classwxToolBar classwxToolBarMSW
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #   include "wx/gtk/tbargtk.h"
 #   define classwxToolBar wxToolBarGTK
 #endif
index e167d56f6bce4fe14d9604725dd5dcc1f38b9a01..bb4644ccff790c7518cbffa404a511615bbede2d 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __TREECTRLH_BASE__
 #define __TREECTRLH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/treectrl.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/generic/treectrl.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/generic/treectrl.h"
 #endif
 
index e2ef6fd63534d8f8242682291c56465bf21d8b93..a8603a3fc84f373589dc4944f6eb61a83278777f 100644 (file)
@@ -266,7 +266,7 @@ void WXDLLEXPORT wxGetMousePosition( int* x, int* y );
 
 // MSW only: get user-defined resource from the .res file.
 // Returns NULL or newly-allocated memory, so use delete[] to clean up.
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 extern const char* WXDLLEXPORT wxUserResourceStr;
 char* WXDLLEXPORT wxLoadUserResource(const wxString& resourceName, const wxString& resourceType = wxUserResourceStr);
 #endif
index 578ba0881b12be3f30653262c8cf340a8bcefbf2..ebc9c3ba7c23ffdf12cbff66bac79d94e082a98d 100644 (file)
@@ -1,11 +1,11 @@
 #ifndef __WINDOWH_BASE__
 #define __WINDOWH_BASE__
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/msw/window.h"
-#elif defined(__MOTIF__)
+#elif defined(__WXMOTIF__)
 #include "wx/xt/window.h"
-#elif defined(__GTK__)
+#elif defined(__WXGTK__)
 #include "wx/gtk/window.h"
 #endif
 
index d3f8edce889a1dbe2e926a909f14ea81a8c76995..1a68a3f10631387be854bed6ba0f5c618911625c 100755 (executable)
@@ -4232,7 +4232,7 @@ USE_GTK=1
 USE_UNIX=1
 
 TOOLKIT=GTK
-TOOLKIT_DEF=__GTK__
+TOOLKIT_DEF=__WXGTK__
 
 USE_LINUX=
 USE_SGI=
@@ -6111,7 +6111,7 @@ fi
   
 
   cat >> confdefs.h <<\EOF
-#define __GTK__ 1
+#define __WXGTK__ 1
 EOF
 
 fi
index f9c327edbd9b84e768b07a80f81fe058e5bee67f..05b71a014a70de135aeab33aed90ee69a787c144 100644 (file)
@@ -593,7 +593,7 @@ USE_GTK=1
 USE_UNIX=1
 
 TOOLKIT=GTK
-TOOLKIT_DEF=__GTK__
+TOOLKIT_DEF=__WXGTK__
 
 USE_LINUX=
 USE_SGI=
@@ -1180,7 +1180,7 @@ if test "$USE_GTK" = 1; then
        GUI_TK_INCLUDE="$GTK_CFLAGS"
        GUI_TK_LIBRARY="$GTK_LIBS"
   ], AC_MSG_ERROR(Are gtk-config and the GTK in path and up-to-date?))
-  AC_DEFINE(__GTK__)
+  AC_DEFINE(__WXGTK__)
 fi
 AC_SUBST(GUI_TK_INCLUDE)
 AC_SUBST(GUI_TK_LIBRARY)
index ac37f686524560b27d623698cdebc03b65628767..004eff2b84dabcce5771cde67f542dc5eb8f7741 100644 (file)
@@ -91,7 +91,7 @@ bool MyApp::OnInit(void)
   MyFrame *frame = new MyFrame(NULL, "Controls wxWindows App", 50, 50, 500, 420 );
   
   // Give it an icon
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   frame->SetIcon(wxIcon("mondrian"));
 #endif
 #ifdef __X__
index 5d4ddf64eeb674bea26b73499b20da54dfae8c22..939efa6cb8ee6c040880f83c1f2d6d96004d9026 100644 (file)
@@ -31,7 +31,7 @@
 #include <wx/fontdlg.h>
 #include <wx/choicdlg.h>
 
-#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
+#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
 #include <wx/generic/colrdlgg.h>
 #include <wx/generic/fontdlgg.h>
 #endif
@@ -60,14 +60,14 @@ bool MyApp::OnInit(void)
 
   file_menu->Append(DIALOGS_CHOOSE_COLOUR, "&Choose colour");
 
-#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
+#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
   file_menu->Append(DIALOGS_CHOOSE_COLOUR_GENERIC, "Choose colour (&generic)");
 #endif
 
   file_menu->AppendSeparator();
   file_menu->Append(DIALOGS_CHOOSE_FONT, "Choose &font");
 
-#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
+#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
   file_menu->Append(DIALOGS_CHOOSE_FONT_GENERIC, "Choose f&ont (generic)");
 
 #endif
@@ -143,7 +143,7 @@ void MyFrame::ChooseFont(wxCommandEvent& event)
       dialog->Close();
 }
 
-#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
+#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
 void MyFrame::ChooseColourGeneric(wxCommandEvent& event)
 {
       wxColourData data;
@@ -286,7 +286,7 @@ BEGIN_EVENT_TABLE(MyFrame, wxFrame)
        EVT_MENU(DIALOGS_FILE_OPEN,                                     MyFrame::FileOpen)
        EVT_MENU(DIALOGS_FILE_SAVE,                                     MyFrame::FileSave)
        EVT_MENU(DIALOGS_DIR_CHOOSE,                            MyFrame::DirChoose)
-#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
+#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
        EVT_MENU(DIALOGS_CHOOSE_COLOUR_GENERIC,         MyFrame::ChooseColourGeneric)
        EVT_MENU(DIALOGS_CHOOSE_FONT_GENERIC,           MyFrame::ChooseFontGeneric)
 #endif
index 39c199a35a38c33aeb34e7381f1b286ab588e29f..d3745c423c310d304ce8a66d00e7b5e4a218979d 100644 (file)
@@ -37,7 +37,7 @@ class MyFrame: public wxFrame
     void FileSave(wxCommandEvent& event);
     void DirChoose(wxCommandEvent& event);
 
-#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
+#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
        void ChooseColourGeneric(wxCommandEvent& event);
        void ChooseFontGeneric(wxCommandEvent& event);
 #endif
index a36407e97c1c113694edb2f36f38d3618b95bae5..075238f442a4e1c0710f96a7b69e0cc25dac63d0 100644 (file)
@@ -91,7 +91,7 @@ bool MyApp::OnInit(void)
   frame = new MyFrame(m_docManager, NULL, "DocView Demo", wxPoint(0, 0), wxSize(500, 400), wxDEFAULT_FRAME_STYLE);
 
   //// Give it an icon (this is ignored in MDI mode: uses resources)
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   frame->SetIcon(wxIcon("doc_icn"));
 #endif
 #ifdef __X__
@@ -171,7 +171,7 @@ wxFrame *MyApp::CreateChildFrame(wxDocument *doc, wxView *view, bool isCanvas)
   wxDocChildFrame *subframe = new wxDocChildFrame(doc, view, GetMainFrame(), "Child Frame",
         wxPoint(10, 10), wxSize(300, 300), wxDEFAULT_FRAME_STYLE);
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   subframe->SetIcon(wxString(isCanvas ? "chrt_icn" : "notepad_icn"));
 #endif
 #ifdef __X__
index d604b6fa320ba5063ff0a62ee78edc47e8be87fa..15784e23f61a3041efdbd79099548e1986c95f14 100644 (file)
@@ -105,7 +105,7 @@ void DrawingView::OnUpdate(wxView *sender, wxObject *hint)
     canvas->Refresh();
 
 /* Is the following necessary?
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   if (canvas)
     canvas->Refresh();
 #else
index 0015847436e4ea7807b61dd6c2fde09ef0b225e2..71359b2952804502053ddafb7b87f1f4d7706b07 100644 (file)
@@ -60,7 +60,7 @@ bool MyApp::OnInit(void)
   frame->Connect( MINIMAL_ABOUT, -1, wxEVT_COMMAND_MENU_SELECTED, (wxObjectEventFunction)MyFrame::OnAbout );
   
   // Give it an icon
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   frame->SetIcon(wxIcon("mondrian"));
 #endif
 #ifdef __X__
index 6cfcf2b9b6b7eaa671ad1f6a7f73aca683faba9f..013983c366275b82ca627a3170a9810d2bdb4f15 100644 (file)
@@ -88,7 +88,7 @@ IMPLEMENT_APP(MyApp)
 // `Main program' equivalent, creating windows and returning main app frame
 bool MyApp::OnInit(void)
 {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   cellBitmap1 = new wxBitmap("bitmap1");
   cellBitmap2 = new wxBitmap("bitmap2");
 #endif
@@ -97,7 +97,7 @@ bool MyApp::OnInit(void)
   MyFrame *frame = new MyFrame(NULL, "wxGrid Sample", wxPoint(50, 50), wxSize(450, 300));
   
   // Give it an icon
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   frame->SetIcon(wxIcon("mondrian"));
 #endif
 #ifdef __X__
index e8e4fd58127b8e434e5ffaf57d92cf513fb870c4..9bcf7ae964720456caa335747aa690605de1c613 100644 (file)
@@ -87,7 +87,7 @@ bool MyApp::OnInit(void)
   MyFrame *frame = new MyFrame(NULL, "Minimal wxWindows App", 50, 50, 450, 340);
 
   // Give it an icon
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   frame->SetIcon(wxIcon("mondrian"));
 #endif
 #ifdef __X__
index 6ec7c6fa53cdeeca9569151a61b3d3479e0ce978..862663ff30cbd2cefc7d3848537f2452bd9192fa 100644 (file)
@@ -55,7 +55,7 @@ bool MyApp::OnInit(void)
    wxDEFAULT_FRAME | wxHSCROLL | wxVSCROLL);
 
   // Give it an icon (this is ignored in MDI mode: uses resources)
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   frame->SetIcon(wxIcon("joyicon"));
 #endif
 #ifdef __X__
index 7cf0458e7bd2be97f1e2003679959e71b218e3e5..c5318f1abd544b021dadd6b13b8fb9844cd85213 100644 (file)
@@ -52,7 +52,7 @@ bool MyApp::OnInit(void)
   frame->CreateStatusBar(2);
 
   // Load icon and bitmap
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   frame->SetIcon(wxIcon("aiai_icn"));
 #endif
 #ifdef __X__
@@ -186,7 +186,7 @@ void MyFrame::LoadFile(wxCommandEvent& event)
       char *s = wxFileSelector("Load text file", NULL, NULL, NULL, "*.txt");
       if (s)
       {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
         frame->text_window->LoadFile(s);
 #endif
       }
index 24ee28c00b5c968a0566076ffbf5604f583f6991..d51ecae8275127e7f52c80c36523a8960afa20b8 100644 (file)
@@ -66,7 +66,7 @@ bool MyApp::OnInit(void)
   frame->SetBackgroundColour(wxColour(255, 255, 255));
 
   // Give it an icon
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   frame->SetIcon(wxIcon("mondrian"));
 #endif
 #ifdef __X__
index 588f0260bdc053d45102b20612ca35222b90b01a..ed177ee94b78d12facc84d22616cb6cd30ed897b 100644 (file)
@@ -21,7 +21,7 @@
 #include "wx/mdi.h"
 #endif
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #ifdef __WIN95__
 #include <wx/tbar95.h>
 #else
@@ -51,7 +51,7 @@ bool MyApp::OnInit(void)
    wxDEFAULT_FRAME | wxHSCROLL | wxVSCROLL);
 
   // Give it an icon (this is ignored in MDI mode: uses resources)
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   frame->SetIcon(wxIcon("mdi_icn"));
 #endif
 #ifdef __X__
@@ -100,7 +100,7 @@ MyFrame::MyFrame(wxWindow *parent, const wxWindowID id, const wxString& title, c
         wxTE_MULTILINE|wxSUNKEN_BORDER);
     textWindow->SetValue("A help window");
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     toolBar = new TestRibbon(this, 0, 0, 100, 30, wxNO_BORDER, wxVERTICAL, 1);
     SetToolBar(toolBar);
 #endif
@@ -128,7 +128,7 @@ void MyFrame::OnNewWindow(wxCommandEvent& event)
       winNumber ++;
 
       // Give it an icon (this is ignored in MDI mode: uses resources)
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       subframe->SetIcon(wxIcon("chrt_icn"));
 #endif
 #ifdef __X__
@@ -252,7 +252,7 @@ void MyFrame::OnSize(wxSizeEvent& event)
     int tw = 0;
     int th = 0;
     
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     wxWindow* tbar = GetToolBar();
     if (tbar)
     {
@@ -302,7 +302,7 @@ bool MyChild::OnClose(void)
   return TRUE;
 }
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 
 BEGIN_EVENT_TABLE(TestRibbon, wxToolBar)
     EVT_PAINT(TestRibbon::OnPaint)
@@ -323,7 +323,7 @@ TestRibbon::TestRibbon(wxFrame *frame, int x, int y, int w, int h,
     bitmaps[6] = new wxBitmap("icon7", wxBITMAP_TYPE_RESOURCE);
     bitmaps[7] = new wxBitmap("icon8", wxBITMAP_TYPE_RESOURCE);
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   int width = 24;
 #else
   int width = 16;
index e33dd98f127f145af27b44ddb12d5de579eca9a2..37736994225321aff839c42ce201fa23f17ecd59 100644 (file)
@@ -9,7 +9,7 @@
 // Licence:    wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #ifdef __WIN95__
 #define wxToolBar wxToolBar95
 #else
@@ -34,7 +34,7 @@ class MyCanvas: public wxScrolledWindow
     DECLARE_EVENT_TABLE()
 };
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 
 class TestRibbon: public wxToolBar
 {
@@ -56,7 +56,7 @@ class MyFrame: public wxMDIParentFrame
   public:
     wxTextCtrl *textWindow;
     
-#ifdef __WINDOWS__    
+#ifdef __WXMSW__    
     TestRibbon* toolBar;
 #endif
 
index 86a0e89965bdd20ae2baae1ef0e8580e7cba8a41..623245f6ae60f7c5996481581feb97f2827b6fc0 100644 (file)
@@ -65,7 +65,7 @@ bool MyApp::OnInit(void)
   MyFrame *frame = new MyFrame(NULL, "Minimal wxWindows App", 50, 50, 450, 340);
 
   // Give it an icon
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   frame->SetIcon(wxIcon("mondrian"));
 #endif
 #ifdef __X__
index 412338aaa142fe9de54da899d40bca12488fe702..11c75fe5895638da6cdf620ceb76562f86bb161c 100644 (file)
@@ -1,8 +1,8 @@
 //Microsoft Developer Studio generated resource script.
 //
 
-#ifndef __WINDOWS__
-#define __WINDOWS__
+#ifndef __WXMSW__
+#define __WXMSW__
 #endif
 
 #ifndef __WIN32__
index 7c55473a6adac7b10559f60a9048f7ad7825856b..0d75d381354a842b876edeed396d134f379bc676 100644 (file)
@@ -52,7 +52,7 @@ $(TARGET).def
 nativdlg.obj:  nativdlg.$(SRCSUFF) nativdlg.h # dialog1.wxr
 
 $(TARGET).res :      $(TARGET).rc $(WXDIR)\include\wx\msw\wx.rc
-    brc32 -r /D__WINDOWS__ /i$(BCCDIR)\include /i$(WXDIR)\include $(TARGET)
+    brc32 -r /D__WXMSW__ /i$(BCCDIR)\include /i$(WXDIR)\include $(TARGET)
 
 clean:
         -erase *.obj
index 08261497f89989379d9169a4011669db6662b08f..b143f84a2823552e390fc9064ef1a1cb24b92e94 100644 (file)
@@ -50,7 +50,7 @@ $(CPPFLAGS) /c /Tp $*.$(SRCSUFF)
 <<
 
 $(PROGRAM).res :      $(PROGRAM).rc $(WXDIR)\include\wx\msw\wx.rc dialog1.rc
-    $(rc) -r /i$(WXDIR)\include /D__WINDOWS__ -fo$@ $(PROGRAM).rc
+    $(rc) -r /i$(WXDIR)\include /D__WXMSW__ -fo$@ $(PROGRAM).rc
 
 
 clean:
index ed0c27b7747b1074f54bcdf657a4e9a0279d559e..05fb32d7efc866601b46f933bd2bef25cb619f6a 100644 (file)
@@ -20,7 +20,7 @@
 #pragma hdrstop
 #endif
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include <wx/pnghand.h>
 #endif
 
@@ -37,7 +37,7 @@ MyApp::MyApp()
 
 bool MyApp::OnInit(void)
 {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   wxBitmap::AddHandler(new wxPNGFileHandler);
 #endif
 
index d11143d205796832b411cee3fa55197308b82e29..14e1fb48c5734abdc958dabe71f16b337a56cd64 100644 (file)
@@ -81,7 +81,7 @@ bool MyApp::OnInit(void)
   frame->CreateStatusBar(2);
 
   // Load icon and bitmap
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   frame->SetIcon(wxIcon("aiai_icn"));
 #endif
 #ifdef __X__
@@ -96,7 +96,7 @@ bool MyApp::OnInit(void)
   file_menu->Append(WXPRINT_PAGE_SETUP, "Page Set&up...",              "Page setup");
   file_menu->Append(WXPRINT_PREVIEW, "Print Pre&view",              "Preview");
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   file_menu->AppendSeparator();
   file_menu->Append(WXPRINT_PRINT_PS, "Print PostScript...",              "Print (PostScript)");
   file_menu->Append(WXPRINT_PRINT_SETUP_PS, "Print Setup PostScript...",              "Setup printer properties (PostScript)");
@@ -166,7 +166,7 @@ void MyFrame::OnExit(wxCommandEvent& event)
 
 void MyFrame::OnPrint(wxCommandEvent& event)
 {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       wxGetApp().SetPrintMode(wxPRINT_WINDOWS);
 #else
       wxGetApp().SetPrintMode(wxPRINT_POSTSCRIPT);
@@ -188,7 +188,7 @@ void MyFrame::OnPrintPS(wxCommandEvent& event)
 
 void MyFrame::OnPrintPreview(wxCommandEvent& event)
 {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       wxGetApp().SetPrintMode(wxPRINT_WINDOWS);
 #else
       wxGetApp().SetPrintMode(wxPRINT_POSTSCRIPT);
@@ -228,7 +228,7 @@ void MyFrame::OnPrintPreviewPS(wxCommandEvent& event)
 
 void MyFrame::OnPrintSetup(wxCommandEvent& event)
 {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       wxGetApp().SetPrintMode(wxPRINT_WINDOWS);
 #else
       wxGetApp().SetPrintMode(wxPRINT_POSTSCRIPT);
@@ -236,7 +236,7 @@ void MyFrame::OnPrintSetup(wxCommandEvent& event)
       wxPrintData data;
       data.SetOrientation(orientation);
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       wxPrintDialog printerDialog(this, & data);
 #else
       wxGenericPrintDialog printerDialog(this, & data);
@@ -249,7 +249,7 @@ void MyFrame::OnPrintSetup(wxCommandEvent& event)
 
 void MyFrame::OnPageSetup(wxCommandEvent& event)
 {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       wxGetApp().SetPrintMode(wxPRINT_WINDOWS);
 #else
       wxGetApp().SetPrintMode(wxPRINT_POSTSCRIPT);
@@ -257,7 +257,7 @@ void MyFrame::OnPageSetup(wxCommandEvent& event)
       wxPageSetupData data;
       data.SetOrientation(orientation);
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       wxPageSetupDialog pageSetupDialog(this, & data);
 #else
       wxGenericPageSetupDialog pageSetupDialog(this, & data);
index 89952f18ea226bae2e7ce23396f29514e7a8550f..461cea563b5ed6fba2ee2bab58c2adb7fcfa9d64 100644 (file)
@@ -42,7 +42,7 @@
 // the TEXT resource, for some reason, so either run-time file loading
 // or file inclusion should be used.
 
-#if defined(__WINDOWS__) && !defined(__BORLANDC__) && !defined(__GNUWIN32__)
+#if defined(__WXMSW__) && !defined(__BORLANDC__) && !defined(__GNUWIN32__)
 // Under Windows, some compilers can't include
 // a whole .wxr file. So we use a .rc user-defined resource
 // instead. dialog1 will point to the whole .wxr 'file'.
@@ -69,7 +69,7 @@ MyApp::MyApp()
 // main frame
 bool MyApp::OnInit(void)
 {
-#if defined(__WINDOWS__)  && !defined(__BORLANDC__)
+#if defined(__WXMSW__)  && !defined(__BORLANDC__)
   // Load the .wxr 'file' from a .rc resource, under Windows.
   dialog1 = wxLoadUserResource("dialog1");
   menu1 = wxLoadUserResource("menu1");
index ba3732986c212cc3df7535ec5db8f9e4fd7f0966..d626b81e1843c195cf02668853bea29929889cce 100644 (file)
@@ -113,7 +113,7 @@ MyFrame::MyFrame(wxFrame* frame, const wxString& title, const wxPoint& pos, cons
        wxFrame(frame, -1, title, pos, size)
 {
        // set the icon
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
        SetIcon(wxIcon("mondrian"));
 #endif
 #ifdef __X__
index 61d3ef5e7b815f024dd6e78f957f9468ee64fe90..21730f7da7932a025fc7b4d7a60da96cef026c4d 100644 (file)
@@ -116,7 +116,7 @@ bool MyApp::OnInit(void)
   MyFrame *frame = new MyFrame(NULL, "Minimal wxWindows App", 50, 50, 450, 340);
 
   // Give it an icon
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   frame->SetIcon(wxIcon("AIAI"));
 #endif
 #ifdef __X__
index 690e648d3740230fef173744ba543c5ff8771edc..f162be97aeb0176aade5e624aba75c9fd3bcb477 100644 (file)
@@ -63,7 +63,7 @@ bool MyApp::OnInit(void)
   frame->SetBackgroundColour(wxColour(255, 255, 255));
 
   // Give it an icon
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   frame->SetIcon(wxIcon("mondrian"));
 #endif
 #ifdef __X__
index 70e5c07232c3824fa0a14c61e27dfdee265b9664..b7bde3e173c25cee872471f66286143c10ad8727 100644 (file)
@@ -44,7 +44,7 @@ bool MyApp::OnInit(void)
   MyFrame *frame = new MyFrame(NULL, "Validation Test", 50, 50, 300, 250);
 
   // Give it an icon
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   frame->SetIcon(wxIcon("mondrian"));
 #endif
 #ifdef __X__
index e19b0aa7133b03c98f9fc0031a393e418ef0a1f4..b3e4eb2c21e37545df846b7117d3511471928055 100644 (file)
@@ -29,7 +29,7 @@
 #include "wx/gdicmn.h"
 #include "wx/cmndata.h"
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include <windows.h>
 
 #ifndef __WIN32__
@@ -127,7 +127,7 @@ void wxFontData::operator=(const wxFontData& data)
 
 wxPrintData::wxPrintData(void)
 {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     printData = NULL;
 #endif
     printOrientation = wxPORTRAIT;
@@ -148,7 +148,7 @@ wxPrintData::wxPrintData(void)
 
 wxPrintData::~wxPrintData(void)
 {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     PRINTDLG *pd = (PRINTDLG *)printData;
     if ( pd && pd->hDevMode )
         GlobalFree(pd->hDevMode);
@@ -157,7 +157,7 @@ wxPrintData::~wxPrintData(void)
 #endif
 }
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 void wxPrintData::ConvertToNative(void)
 {
     PRINTDLG *pd = (PRINTDLG*) printData;
index 96f6a9c197be40783f215ed583feacbb38fbeef0..9f70f2069fab61df6f8f13c32b4e3cba1a946df4 100644 (file)
@@ -136,7 +136,7 @@ wxString ExpandEnvVars(const wxString& str)
     Bracket_None, 
     Bracket_Normal  = ')', 
     Bracket_Curly   = '}',
-#ifdef  __WINDOWS__
+#ifdef  __WXMSW__
     Bracket_Windows = '%'     // yeah, Windows people are a bit strange ;-)
 #endif
   };
@@ -144,13 +144,13 @@ wxString ExpandEnvVars(const wxString& str)
   uint m;
   for ( uint n = 0; n < str.Len(); n++ ) {
     switch ( str[n] ) {
-#ifdef  __WINDOWS__
+#ifdef  __WXMSW__
       case '%':
 #endif  //WINDOWS
       case '$':
         {
           Bracket bracket;
-          #ifdef  __WINDOWS__
+          #ifdef  __WXMSW__
             if ( str[n] == '%' )
               bracket = Bracket_Windows;
             else
@@ -188,7 +188,7 @@ wxString ExpandEnvVars(const wxString& str)
           }
           else {
             // variable doesn't exist => don't change anything
-            #ifdef  __WINDOWS__
+            #ifdef  __WXMSW__
               if ( bracket != Bracket_Windows )
             #endif
                 if ( bracket != Bracket_None )
index 7ac9ec8641c54806b6b9aaa5416fa248ea2f9ecf..158aca78c8af65e81044bd9779d91c0cd728ae10 100644 (file)
@@ -466,7 +466,7 @@ bool wxDate::IsLeapYear( void ) const
 
 wxDate& wxDate::Set()
 {
-//#ifdef __WINDOWS__
+//#ifdef __WXMSW__
 #if 0
     struct _dosdate_t sDate;
     _dos_getdate(&sDate);
index 17f2100ebe1516aceeeb5960f46d757ec19c8e6b..df9095cdffda10a97719542b56426608e603bbd6 100644 (file)
@@ -173,7 +173,7 @@ void wxDataStream::Write8(unsigned char i)
 
 void wxDataStream::WriteLine(const wxString& line)
 {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   wxString tmp_string = line + "\r\n";
 #else
   wxString tmp_string = line + '\n';
index 81d86a85a2e9f8380657a530e1b93f194c8b102b..9671a5cf2ca46cf5607d17e2e8eb96c1ae02f952 100644 (file)
@@ -44,7 +44,7 @@
 #include "wx/generic/printps.h"
 
 /*
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include "wx/mdi.h"
 #endif
 */
@@ -491,7 +491,7 @@ void wxView::OnChangeFilename(void)
     // If the frame is an MDI child, just set the title
     // to the name.
     // Otherwise, append the document name to the name of the application
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     if (GetFrame()->IsKindOf(CLASSINFO(wxMDIChildFrame)))
 #else
     if (FALSE)
@@ -753,7 +753,7 @@ void wxDocManager::OnPrint(wxCommandEvent& WXUNUSED(event))
   {
     // TODO: trouble about this is that it pulls in the postscript
     // code unecessarily
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     if ( wxTheApp->GetPrintMode() == wxPRINT_WINDOWS )
     {
       wxWindowsPrinter printer;
@@ -779,7 +779,7 @@ void wxDocManager::OnPrintSetup(wxCommandEvent& WXUNUSED(event))
 
   wxPrintData data;
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   if ( wxTheApp->GetPrintMode() == wxPRINT_WINDOWS )
   {
     wxPrintDialog printerDialog(parentWin, & data);
@@ -806,7 +806,7 @@ void wxDocManager::OnPreview(wxCommandEvent& WXUNUSED(event))
   {
     // Pass two printout objects: for preview, and possible printing.
     wxPrintPreviewBase *preview = NULL;
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     if ( wxTheApp->GetPrintMode() == wxPRINT_WINDOWS )
         preview = new wxWindowsPrintPreview(printout, view->OnCreatePrintout());
     else
@@ -1126,7 +1126,7 @@ wxDocTemplate *wxDocManager::SelectDocumentPath(wxDocTemplate **templates,
     int noTemplates, wxString& path, long WXUNUSED(flags), bool WXUNUSED(save))
 {
   // We can only have multiple filters in Windows
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   char *descrBuf = new char[1000];
   descrBuf[0] = 0;
   int i;
index e6a8a9c8787b68d572206aaa71ca476c38c3232d..52a39d4d348f5ad94a4a07d904c218d4cccfabbc 100644 (file)
@@ -27,7 +27,7 @@
 #endif
 
 // standard
-#if    defined(__WINDOWS__) && !defined(__GNUWIN32__)
+#if    defined(__WXMSW__) && !defined(__GNUWIN32__)
   #include  <io.h>
 #elif (defined(__UNIX__) || defined(__GNUWIN32__))
   #include  <unistd.h>
index f2e2c35e03f00524aafdf92a8818034f6fd78bf4..2482693f65c857e8711b32a928e6a13ac5650432 100644 (file)
@@ -40,8 +40,8 @@
 #include  <wx/fileconf.h>
 
 // _WINDOWS_ is defined when windows.h is included,
-// __WINDOWS__ is defined for MS Windows compilation
-#if       defined(__WINDOWS__) && !defined(_WINDOWS_)
+// __WXMSW__ is defined for MS Windows compilation
+#if       defined(__WXMSW__) && !defined(_WINDOWS_)
   #include  <windows.h>
 #endif  //windows.h
 
index b47d856e660a21447b6fbb2a81ab9ef7540d25e7..2a17499d5e7bfd82d4e1f9439b8aeaf378af8f4b 100644 (file)
@@ -45,7 +45,7 @@
 #include <dirent.h>
 #endif
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #ifndef __GNUWIN32__
 #include <direct.h>
 #include <dos.h>
@@ -69,7 +69,7 @@
 #include <dir.h>
 #endif
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include "windows.h"
 #endif
 
@@ -90,7 +90,7 @@ void wxPathList::Add (const wxString& path)
 void wxPathList::AddEnvList (const wxString& envVariable)
 {
   static const char PATH_TOKS[] =
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
        " ;"; // Don't seperate with colon in DOS (used for drive)
 #else
        " :;";
@@ -135,7 +135,7 @@ bool wxPathList::Member (const wxString& path)
   {
       wxString path2((char *) node->Data ());
       if (
-#if defined(__WINDOWS__) || defined(__VMS__)
+#if defined(__WXMSW__) || defined(__VMS__)
       // Case INDEPENDENT
          path.CompareTo (path2, wxString::ignoreCase) == 0
 #else
@@ -166,7 +166,7 @@ wxString wxPathList::FindValidPath (const wxString& file)
       if (ch != '\\' && ch != '/')
         strcat (wxBuffer, "/");
       strcat (wxBuffer, filename);
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       Unix2DosFilename (wxBuffer);
 #endif
       if (wxFileExists (wxBuffer))
@@ -193,7 +193,7 @@ wxString wxPathList::FindAbsoluteValidPath (const wxString& file)
       lastCh = buf[len-1];
     if (lastCh != '/' && lastCh != '\\')
     {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       strcat(buf, "\\");
 #else
       strcat(buf, "/");
@@ -236,7 +236,7 @@ wxIsAbsolutePath (const wxString& filename)
 #ifdef __VMS__
       || (filename[0] == '[' && filename[1] != '.')
 #endif
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       /* MSDOS */
       || filename[0] == '\\' || (isalpha (filename[0]) && filename[1] == ':')
 #endif
@@ -270,7 +270,7 @@ void wxStripExtension(char *buffer)
 // Destructive removal of /./ and /../ stuff
 char *wxRealPath (char *path)
 {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   static const char SEP = '\\';
   Unix2DosFilename(path);
 #else
@@ -300,7 +300,7 @@ char *wxRealPath (char *path)
                        path[0] = SEP;
                        path[1] = '\0';
                      }
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
                    /* Check that path[2] is NULL! */
                    else if (path[1] == ':' && !path[2])
                      {
@@ -330,7 +330,7 @@ char *wxCopyAbsolutePath(const wxString& filename)
     buf[0] = '\0';
     wxGetWorkingDirectory(buf, sizeof(buf)/sizeof(char));
     char ch = buf[strlen(buf) - 1];
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     if (ch != '\\' && ch != '/')
        strcat(buf, "\\");
 #else
@@ -381,7 +381,7 @@ char *wxExpandPath(char *buf, const char *name)
     trimchars[2] = '\t';
     trimchars[3] = 0;
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
      const char     SEP = '\\';
 #else
      const char     SEP = '/';
@@ -402,7 +402,7 @@ char *wxExpandPath(char *buf, const char *name)
 
     s = nm;
     d = lnm;
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     q = FALSE;
 #else
     q = nm[0] == '\\' && nm[1] == '~';
@@ -410,7 +410,7 @@ char *wxExpandPath(char *buf, const char *name)
 
     /* Expand inline environment variables */
     while ((*d++ = *s)) {
-#ifndef __WINDOWS__
+#ifndef __WXMSW__
        if (*s == '\\') {
            if ((*(d - 1) = *++s)) {
                s++;
@@ -419,7 +419,7 @@ char *wxExpandPath(char *buf, const char *name)
                break;
        } else
 #endif
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
        if (*s++ == '$' && (*s == '{' || *s == ')'))
 #else
        if (*s++ == '$')
@@ -510,7 +510,7 @@ wxContractPath (const wxString& filename, const wxString& envname, const wxStrin
     return NULL;
 
   strcpy (dest, WXSTRINGCAST filename);
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   Unix2DosFilename(dest);
 #endif
 
@@ -537,7 +537,7 @@ wxContractPath (const wxString& filename, const wxString& envname, const wxStrin
       strcpy(wxBuffer, "~");
       if (user && *user)
        strcat(wxBuffer, user);
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 //      strcat(wxBuffer, "\\");
 #else
 //      strcat(wxBuffer, "/");
@@ -568,7 +568,7 @@ char *wxFileNameFromPath (char *path)
 #endif
            return tcp + 1;
        }                       /* while */
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       if (isalpha (*path) && *(path + 1) == ':')
        return path + 2;
 #endif
@@ -595,7 +595,7 @@ wxString wxFileNameFromPath (const wxString& path1)
 #endif
                return wxString(tcp + 1);
            }                   /* while */
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       if (isalpha (*path) && *(path + 1) == ':')
            return wxString(path + 2);
 #endif
@@ -637,7 +637,7 @@ wxPathOnly (char *path)
         else i --;
       }
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       // Try Drive specifier
       if (isalpha (buf[0]) && buf[1] == ':')
        {
@@ -685,7 +685,7 @@ wxString wxPathOnly (const wxString& path)
         else i --;
       }
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       // Try Drive specifier
       if (isalpha (buf[0]) && buf[1] == ':')
        {
@@ -712,7 +712,7 @@ wxDos2UnixFilename (char *s)
       {
        if (*s == '\\')
          *s = '/';
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
        else
          *s = wxToLower (*s);  // Case INDEPENDENT
 #endif
@@ -724,7 +724,7 @@ void
 wxUnix2DosFilename (char *s)
 {
 // Yes, I really mean this to happen under DOS only! JACS
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   if (s)
     while (*s)
       {
@@ -826,7 +826,7 @@ bool wxMkdir(const wxString& dir)
 {
 #ifdef __VMS__
        return FALSE;
-#elif (defined(__GNUWIN32__) && !defined(__MINGW32__)) || !defined(__WINDOWS__)
+#elif (defined(__GNUWIN32__) && !defined(__MINGW32__)) || !defined(__WXMSW__)
   return (mkdir (WXSTRINGCAST dir, S_IRUSR | S_IWUSR | S_IXUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) == 0);
 #else
   return (mkdir(WXSTRINGCAST dir) == 0);
@@ -847,7 +847,7 @@ bool wxDirExists(const wxString& dir)
 {
 #ifdef __VMS__
   return FALSE;
-#elif !defined(__WINDOWS__)
+#elif !defined(__WXMSW__)
   struct stat sbuf;
   return (stat(dir, &sbuf) != -1) && S_ISDIR(sbuf.st_mode) ? TRUE : FALSE;
 #else
@@ -904,7 +904,7 @@ bool wxPathExists(const char *pszPathName)
 // Get a temporary filename, opening and closing the file.
 char *wxGetTempFileName(const wxString& prefix, char *buf)
 {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 
 #ifndef        __WIN32__
   char tmp[144];
@@ -1051,7 +1051,7 @@ char *wxFindNextFile(void)
   return NULL;
 }
 
-#elif defined(__WINDOWS__)
+#elif defined(__WXMSW__)
 
 #ifdef __WIN32__
 HANDLE wxFileStrucHandle = INVALID_HANDLE_VALUE;
@@ -1216,7 +1216,7 @@ char *wxFindNextFile(void)
 }
 
 #endif
- // __WINDOWS__
+ // __WXMSW__
 
 // Get current working directory.
 // If buf is NULL, allocates space using new, else
@@ -1240,7 +1240,7 @@ bool wxSetWorkingDirectory(const wxString& d)
 {
 #ifdef __UNIX__
   return (chdir(d) == 0);
-#elif defined(__WINDOWS__)
+#elif defined(__WXMSW__)
 
 #ifdef __WIN32__
   return (bool)(SetCurrentDirectory(d) != 0);
index 7ab3528f6c5fb413c3d2000707bdf43c6d311d7d..a30a772c7a450885ceab76555d6a82473d375602 100644 (file)
@@ -31,7 +31,7 @@
 
 #include <string.h>
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include <windows.h>
 #endif
 
@@ -146,7 +146,7 @@ void wxColourDatabase::Initialize ()
   cdef cc;
   static cdef table[]={
   
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
    {"AQUAMARINE",112, 219, 147},
    {"BLACK",0, 0, 0},
    {"BLUE", 0, 0, 255},
@@ -220,7 +220,7 @@ void wxColourDatabase::Initialize ()
    {"YELLOW GREEN", 153, 204, 50},
 #endif
 
-#if defined(__GTK__) || defined(__X__)
+#if defined(__WXGTK__) || defined(__X__)
    {"MEDIUM GOLDENROD", 234, 234, 173},
    {"MEDIUM FOREST GREEN", 107, 142, 35},
    {"LIGHT MAGENTA", 255, 0, 255},
@@ -252,11 +252,11 @@ wxColour *wxColourDatabase::FindColour(const wxString& colour)
   if (node)
     return (wxColour *)node->Data();
     
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   else return NULL;
 #endif
 
-#ifdef __GTK__
+#ifdef __WXGTK__
   else {
     wxColour *col = new wxColour( colour );
     
@@ -273,7 +273,7 @@ wxColour *wxColourDatabase::FindColour(const wxString& colour)
   else {
     XColor xcolour;
 
-#ifdef __MOTIF__
+#ifdef __WXMOTIF__
     Display *display = XtDisplay(wxTheApp->topLevel) ;
 #endif
 #ifdef __XVIEW__
@@ -326,7 +326,7 @@ wxInitializeStockObjects ()
   wxTheFontList = new wxFontList;
   wxTheBitmapList = new wxBitmapList;
 
-#ifdef __MOTIF__
+#ifdef __WXMOTIF__
 #endif
 #ifdef __X__
   wxFontPool = new XFontPool;
@@ -542,7 +542,7 @@ void wxBrushList::RemoveBrush (wxBrush * brush)
 
 wxFontList::~wxFontList ()
 {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   wxNode *node = First ();
   while (node)
     {
@@ -585,7 +585,7 @@ wxFont *wxFontList::
          each_font->GetStyle () == Style &&
          each_font->GetWeight () == Weight &&
          each_font->GetUnderlined () == underline &&
-#if defined(__X__) || (defined(__WINDOWS__) && USE_PORTABLE_FONTS_IN_MSW)
+#if defined(__X__) || (defined(__WXMSW__) && USE_PORTABLE_FONTS_IN_MSW)
          each_font->GetFontId () == FamilyOrFontId) /* New font system */
 #else
          each_font->GetFamily () == FamilyOrFontId &&
index 728c8c483d887162f54daeeb84b6625890e5424a..b4d2ab7410b407b7629f5018d6bc4229b84e08e9 100644 (file)
@@ -174,7 +174,7 @@ wxList::wxList (wxObject * first_one...)
     {
       wxObject *object = va_arg (ap, wxObject *);
 //    if (object == NULL) // Doesn't work in Windows -- segment is non-zero for NULL!
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       if ((int) object == 0)
 #else
       if ((long) object == 0)
@@ -525,7 +525,7 @@ wxStringList::wxStringList (const char *first...)
     {
       char *s = va_arg (ap, char *);
 //    if (s == NULL)
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       if ((int) s == 0)
 #else
       if ((long) s == 0)
index 1c266afcb57c0cda7cc21954be70ea7b8dacf675..62a70119a02b2e005db196c73267e37b2f956257 100644 (file)
@@ -47,7 +47,7 @@
 #include  <stdlib.h>
 #include  <time.h>
 
-#ifdef  __WINDOWS__
+#ifdef  __WXMSW__
   #include  <windows.h>
 #else   //Unix
   #include  <signal.h>
@@ -359,7 +359,7 @@ void wxLogStream::DoLogString(const char *szString)
 // ----------------------------------------------------------------------------
 wxLogTextCtrl::wxLogTextCtrl(wxTextCtrl *pTextCtrl)
 // @@@ TODO: in wxGTK wxTextCtrl doesn't derive from streambuf
-#ifndef __GTK__
+#ifndef __WXGTK__
              : wxLogStream(new ostream(pTextCtrl))
 #endif //GTK
 {
@@ -367,7 +367,7 @@ wxLogTextCtrl::wxLogTextCtrl(wxTextCtrl *pTextCtrl)
 
 wxLogTextCtrl::~wxLogTextCtrl()
 {
-  #ifndef __GTK__
+  #ifndef __WXGTK__
     delete m_ostr;
   #endif //GTK
 }
@@ -619,7 +619,7 @@ void wxLogFrame::OnSave(wxCommandEvent& event)
   // retrieve text and save it
   // -------------------------
   
-#ifdef __GTK__
+#ifdef __WXGTK__
   // @@@@ TODO: no GetNumberOfLines and GetLineText in wxGTK yet
   wxLogError("Sorry, this function is not implemented under GTK");
 #else
@@ -678,7 +678,7 @@ void wxLogWindow::DoLogString(const char *szString)
   wxTextCtrl *pText = m_pLogFrame->TextCtrl();
 
   // remove selection (WriteText is in fact ReplaceSelection)
-  #ifdef __WINDOWS__
+  #ifdef __WXMSW__
     long nLen = pText->GetLastPosition();
     pText->SetSelection(nLen, nLen);
   #endif // Windows
@@ -751,7 +751,7 @@ static void wxLogWrap(FILE *f, const char *pszPrefix, const char *psz)
 // get error code from syste
 unsigned long wxSysErrorCode()
 {
-  #ifdef  __WINDOWS__
+  #ifdef  __WXMSW__
     #ifdef  __WIN32__
       return ::GetLastError();
     #else   //WIN16
@@ -769,7 +769,7 @@ const char *wxSysErrorMsg(unsigned long nErrCode)
   if ( nErrCode == 0 )
     nErrCode = wxSysErrorCode();
 
-  #ifdef  __WINDOWS__
+  #ifdef  __WXMSW__
     #ifdef  __WIN32__
       static char s_szBuf[LOG_BUFFER_SIZE / 2];
 
@@ -838,7 +838,7 @@ void wxOnAssert(const char *szFile, int nLine, const char *szMsg)
     switch ( wxMessageBox(szBuf, _("Debug"),
                           wxYES_NO | wxCANCEL | wxICON_STOP ) ) {
       case wxYES:
-        #ifdef __WINDOWS__
+        #ifdef __WXMSW__
           DebugBreak();
         #else // Unix
           raise(SIGTRAP);
index 819dea4bcb6ccb6877f2587b755c968e04b9e550..ce4aec4926c26fd86076a2e6c67b5a11c16d7438 100644 (file)
@@ -51,7 +51,7 @@
 #include <stdarg.h>
 #include <string.h>
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include <windows.h>
 
 #ifdef GetClassInfo
@@ -1021,7 +1021,7 @@ void wxTrace(const char *fmt ...)
 
   va_start(ap, fmt);
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   wvsprintf(buffer,fmt,ap) ;
 #else
   vsprintf(buffer,fmt,ap) ;
@@ -1035,7 +1035,7 @@ void wxTrace(const char *fmt ...)
     wxDebugContext::GetStream().flush();
   }
   else
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     OutputDebugString((LPCSTR)buffer) ;
 #else
     fprintf(stderr, buffer);
@@ -1053,7 +1053,7 @@ void wxTraceLevel(int level, const char *fmt ...)
 
   va_start(ap, fmt);
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   wvsprintf(buffer,fmt,ap) ;
 #else
   vsprintf(buffer,fmt,ap) ;
@@ -1067,7 +1067,7 @@ void wxTraceLevel(int level, const char *fmt ...)
     wxDebugContext::GetStream().flush();
   }
   else
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     OutputDebugString((LPCSTR)buffer) ;
 #else
     fprintf(stderr, buffer);
index 7335397b84145df20ecf534dc1883f0219115e7d..67768ac38e3c06d84137f9cfd698a953528b726c 100644 (file)
@@ -36,7 +36,7 @@
 #include <math.h>
 #include <stdlib.h>
 
-#if defined(__WINDOWS__) && !defined(__WIN32__)
+#if defined(__WXMSW__) && !defined(__WIN32__)
 #include <print.h>
 #endif
 
index 84f5daeaf5c1b123fe25609de4e70d8c7572a15c..3ab71e83d845437456ace1e92caa0bb4366be076 100644 (file)
@@ -44,7 +44,7 @@
 
 #include "wx/dcmemory.h"
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include "wx/msw/private.h"
 #endif
 
@@ -62,7 +62,7 @@
 #include <limits.h>
 #include <assert.h>
 
-#ifdef __GTK__
+#ifdef __WXGTK__
 
 #include "gdk/gdkx.h"        // GDK_DISPLAY
 #include "gdk/gdkprivate.h"  // XImage
@@ -71,7 +71,7 @@
 
 #endif
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 
 #ifdef DrawText
 #undef DrawText
 // SGI's Display Postscript Previewer
 //# define PS_VIEWER_PROG "dps"
 # define PS_VIEWER_PROG "xpsview"
-#elif defined(__X__) || defined(__GTK__)
+#elif defined(__X__) || defined(__WXGTK__)
 // Front-end to ghostscript
 # define PS_VIEWER_PROG "ghostview"
 #else
@@ -175,7 +175,7 @@ wxPostScriptDC::wxPostScriptDC (void)
 
   m_pstream = NULL;
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   // Can only send to file in Windows
   wxThePrintSetupData->SetPrinterMode(PS_FILE);
 #endif
@@ -205,7 +205,7 @@ bool wxPostScriptDC::Create(const wxString& file, bool interactive, wxWindow *pa
   m_filename = file;
   m_pstream = NULL;
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   // Can only send to file in Windows
   wxThePrintSetupData->SetPrinterMode(PS_FILE);
 #endif
@@ -669,7 +669,7 @@ void wxPostScriptDC::DrawEllipse (long x, long y, long width, long height)
 
 void wxPostScriptDC::DrawIcon (const wxIcon& icon, long x, long y)
 {
-#if defined(__X__) || defined(__GTK__)
+#if defined(__X__) || defined(__WXGTK__)
   wxMemoryDC memDC;
   memDC.SelectObject(icon);
   Blit(x, y, icon.GetWidth(), icon.GetHeight(), &memDC, 0, 0);
@@ -1272,7 +1272,7 @@ void wxPostScriptDC::EndDoc (void)
   wxRemoveFile (wxThePrintSetupData->GetPrinterFile());
   wxRenameFile(tmp_file, wxThePrintSetupData->GetPrinterFile());
 
-#if defined(__X__) || defined(__GTK__)
+#if defined(__X__) || defined(__WXGTK__)
   if (m_ok)
     {
       switch (wxThePrintSetupData->GetPrinterMode()) {
@@ -1406,7 +1406,7 @@ Blit (long xdest, long ydest, long fwidth, long fheight,
 {
   long width, height, x, y;
 
-#if !defined(__X__) && !defined(__GTK__)
+#if !defined(__X__) && !defined(__WXGTK__)
   return FALSE;
 #endif
 
@@ -1428,7 +1428,7 @@ Blit (long xdest, long ydest, long fwidth, long fheight,
   *m_pstream << "  currentfile DataString readhexstring pop\n";
   *m_pstream << "} bind image\n";
 
-#if defined(__X__) || defined(__GTK__)
+#if defined(__X__) || defined(__WXGTK__)
 
   /* Output data as hex digits: */
   Display *d;
@@ -1437,7 +1437,7 @@ Blit (long xdest, long ydest, long fwidth, long fheight,
   long j, i;
   char s[3];
   
-#ifdef __GTK__
+#ifdef __WXGTK__
 
   d = gdk_display;
   cm = ((GdkColormapPrivate*)gdk_colormap_get_system())->xcolormap;
@@ -1446,7 +1446,7 @@ Blit (long xdest, long ydest, long fwidth, long fheight,
 
 #else  
 
-#ifdef __MOTIF__
+#ifdef __WXMOTIF__
   d = source->display;
 #else
   d = wxGetDisplay();
@@ -2082,7 +2082,7 @@ wxDialog(parent, -1, title, pos, size, style)
   wxRadioBox *radio1 = new wxRadioBox(this, wxID_PRINTER_MODES, "PostScript:",
     wxPoint(150, yPos), wxSize(-1,-1), features, print_modes, features, 0);
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   radio1->Enable(0, FALSE);
   if (wxThePrintSetupData->GetPrintPreviewCommand() && *wxThePrintSetupData->GetPrintPreviewCommand())
     radio1->Enable(2, FALSE);
@@ -2491,12 +2491,12 @@ void wxInitializePrintSetupData(bool init)
     wxThePrintSetupData->SetPrinterOptions("/nonotify/queue=psqueue");
     wxThePrintSetupData->SetAFMPath("sys$ps_font_metrics:");
 #endif
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     wxThePrintSetupData->SetPrinterCommand("print");
     wxThePrintSetupData->SetAFMPath("c:\\windows\\system\\");
     wxThePrintSetupData->SetPrinterOptions(NULL);
 #endif
-#if !defined(__VMS__) && !defined(__WINDOWS__)
+#if !defined(__VMS__) && !defined(__WXMSW__)
     wxThePrintSetupData->SetPrinterCommand("lpr");
     wxThePrintSetupData->SetPrinterOptions(NULL);
     wxThePrintSetupData->SetAFMPath(NULL);
index df27ba6a65e4cea356bc2b74bc800ac3756e63f3..99dcfbc57d012d32a02f573bad631b3ba900984f 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "wx/defs.h"
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #define __GOOD_COMPILER__
 #endif
 
@@ -47,7 +47,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include <windows.h>
 #include <commdlg.h>
 
@@ -77,7 +77,7 @@ typedef signed short int SHORT ;
 
 LONG APIENTRY _EXPORT wxAbortProc(HDC hPr, int Code);
 #endif
- // End __WINDOWS__
+ // End __WXMSW__
 
 #if !USE_SHARED_LIBRARY
 IMPLEMENT_CLASS(wxPrinterBase, wxObject)
@@ -337,7 +337,7 @@ void wxPreviewControlBar::CreateButtons(void)
 
   SetSize(0, 0, 400, 40);
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   int fontSize = 9;
 #else
   int fontSize = 10;
@@ -484,7 +484,7 @@ void wxPreviewFrame::Initialize(void)
 //  int w, h;
 //  controlBar->GetSize(&w, &h);
   int h;
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   h = 40;
 #else
   h = 60;
index 181854d59722cb178f1adaf224a5f7d4f3e7151b..cd045b2810e6bb1d925d0bf2c8c6e2dc2b91aecd 100644 (file)
@@ -2090,7 +2090,7 @@ wxBitmap *wxResourceCreateBitmap(char *resource, wxResourceTable *table)
           }
           break;
         }
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
         case RESOURCE_PLATFORM_WINDOWS:
         {
           if (!optResource && ((noColours == 0) || (noColours <= thisNoColours)))
@@ -2165,7 +2165,7 @@ wxBitmap *wxResourceCreateBitmap(char *resource, wxResourceTable *table)
       }
       case wxBITMAP_TYPE_XPM_DATA:
       {
-#if (defined(__X__) && USE_XPM_IN_X) || (defined(__WINDOWS__) && USE_XPM_IN_MSW)
+#if (defined(__X__) && USE_XPM_IN_X) || (defined(__WXMSW__) && USE_XPM_IN_MSW)
         wxItemResource *item = table->FindResource(name);
         if (!item)
         {
@@ -2263,7 +2263,7 @@ wxIcon *wxResourceCreateIcon(char *resource, wxResourceTable *table)
           }
           break;
         }
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
         case RESOURCE_PLATFORM_WINDOWS:
         {
           if (!optResource && ((noColours == 0) || (noColours <= thisNoColours)))
@@ -2340,7 +2340,7 @@ wxIcon *wxResourceCreateIcon(char *resource, wxResourceTable *table)
       {
       // *** XPM ICON NOT YET IMPLEMENTED IN WXWINDOWS ***
 /*
-#if (defined(__X__) && USE_XPM_IN_X) || (defined(__WINDOWS__) && USE_XPM_IN_MSW)
+#if (defined(__X__) && USE_XPM_IN_X) || (defined(__WXMSW__) && USE_XPM_IN_MSW)
         wxItemResource *item = table->FindResource(name);
         if (!item)
         {
index 3e5e41f2d6007604f6075f9fc0ed12800b2758d0..1c8cd5319c82235e404bfe8b2f609e8a7710327f 100644 (file)
@@ -907,7 +907,7 @@ int wxString::Scanf(const char *pszFormat, ...) const
 
 int wxString::ScanfV(const char *pszFormat, va_list argptr) const
 {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   wxMessageBox("ScanfV not implemented");
   return 0;
 #else
index 60de3c71a3f459fe0a7d43c7d97f08a6b855da75..b7322ac3f9d599f43504da8249263c3f5e9c462a 100644 (file)
@@ -25,7 +25,7 @@
 #endif
 
 // For ::UpdateWindow
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include <windows.h>
 #endif
 
@@ -500,7 +500,7 @@ void wxToolBarBase::SetScrollbars (int pixelsPerUnitX, int pixelsPerUnitY,
     }
        AdjustScrollbars();
     Refresh();
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     ::UpdateWindow ((HWND) GetHWND());
 #endif
 }
@@ -755,7 +755,7 @@ void wxToolBarBase::Scroll (int x_pos, int y_pos)
       SetScrollPos (wxVERTICAL, y_pos, TRUE);
     }
   Refresh();
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   UpdateWindow ((HWND) GetHWND());
 #endif
 }
@@ -827,7 +827,7 @@ void wxToolBarBase::DoToolbarUpdates(void)
        }
 }
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 // Circumvent wxControl::MSWOnMouseMove which doesn't set the cursor.
 void wxToolBarBase::MSWOnMouseMove(int x, int y, const WXUINT flags)
 {
index ca7235c4e97b60633790b17e4ed11cce4f1acba7..4347c0618b50c703c6df9121b223c1fd51f0bd43 100644 (file)
@@ -39,7 +39,7 @@
   
 // default type is the native one
 const wxTextFile::Type wxTextFile::typeDefault = wxTextFile::
-#if   defined(__WINDOWS__)
+#if   defined(__WXMSW__)
   Type_Dos;
 #elif defined(__UNIX__)
   Type_Unix;
index a13496beff94f2195c59831626a1975b49d7bbdc..a1e02d73a358dd240d6a9f979c8db4f090133cb0 100644 (file)
@@ -144,7 +144,7 @@ bool wxGetLocalTime(long *timeZone, int *dstObserved)
   *dstObserved = tp->tm_isdst;
 #else
 
-#if (((defined(__SYSV__) && !defined(__HPUX__)) || defined(__MSDOS__) || defined(__WINDOWS__)) && !defined(__GNUWIN32__))
+#if (((defined(__SYSV__) && !defined(__HPUX__)) || defined(__MSDOS__) || defined(__WXMSW__)) && !defined(__GNUWIN32__))
 #ifdef __BORLANDC__
   /* Borland uses underscores */
   *timeZone = _timezone;
index 349d6f04a0755b47f164a4e6b9c80324b2d326ee..235b5c146028a1fe3854c41d6dd4a3f59e3e96e6 100644 (file)
@@ -56,7 +56,7 @@
 #include "../common/glob.inc"
 #endif
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include "windows.h"
 #endif
 
@@ -109,7 +109,7 @@ int strncasecmp(const char *str_1, const char *str_2, size_t maxchar)
 }
 #endif
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 
 #ifndef __GNUWIN32__
 #define strcasecmp stricmp
@@ -134,7 +134,7 @@ extern "C"
   int strncasecmp (const char *, const char *, size_t);
 }
 #endif
-#endif                         /* __WINDOWS__ */
+#endif                         /* __WXMSW__ */
 
 
 char *
@@ -519,7 +519,7 @@ int wxDebugStreamBuf::overflow(int WXUNUSED(i))
   char *txt = new char[len+1];
   strncpy(txt, pbase(), len);
   txt[len] = '\0';
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   OutputDebugString((LPCSTR)txt);
 #else
   fprintf(stderr, txt);
@@ -535,7 +535,7 @@ int wxDebugStreamBuf::sync(void)
   char *txt = new char[len+1];
   strncpy(txt, pbase(), len);
   txt[len] = '\0';
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   OutputDebugString((LPCSTR)txt);
 #else
   fprintf(stderr, txt);
index cb34fb1325da8dc9092e2aa174958de81fa85016..9c3ff80d3a8e1ee2aadaca4253f57f858a74ad90 100644 (file)
@@ -32,7 +32,7 @@
 #include "wx/settings.h"
 
 // Set to zero to use no double-buffering
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #define USE_DOUBLE_BUFFERING 1
 #else
 #define USE_DOUBLE_BUFFERING 0
@@ -840,7 +840,7 @@ void wxGenericGrid::DrawCellBackground(wxDC *dc, wxRectangle *rect, int row, int
   {
     dc->SetBrush(*cell->GetBackgroundBrush());
     dc->SetPen(*wxTRANSPARENT_PEN);
-#ifdef __MOTIF__
+#ifdef __WXMOTIF__
     dc->DrawRectangle(rect->x+1, rect->y+1, rect->width-1, rect->height-1);
 #else
     dc->DrawRectangle(rect->x+1, rect->y+1, rect->width, rect->height);
@@ -1371,7 +1371,7 @@ void wxGenericGrid::OnSelectCellImplementation(wxDC *dc, int row, int col)
 
   // Why isn't this needed for Windows??
   // Probably because of the SetValue??
-#ifndef __WINDOWS__
+#ifndef __WXMSW__
   HighlightCell(dc);
 #endif
   dc->DestroyClippingRegion();
@@ -1751,7 +1751,7 @@ void wxGenericGrid::RefreshCell(int row, int col, bool setText)
         currentPos = TRUE;
       }
       // Gets refreshed anyway in MSW
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       if (!currentPos)
 #endif
       {
index 0487ac5cfda6bae107eb248a569a2d14cbb857b1..7cf6872a8205e5084ad6b3d4d3133b080cb1af5d 100644 (file)
@@ -55,7 +55,7 @@
 
 #if !USE_SHARED_LIBRARY
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 IMPLEMENT_CLASS(wxXLPHelpClient, wxDDEClient)
 IMPLEMENT_CLASS(wxXLPHelpConnection, wxDDEConnection)
 #else
@@ -189,7 +189,7 @@ bool wxXLPHelpController::Run(void)
   if (!helpFile || !helpHost || helpRunning)
     return FALSE;
 #endif
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   if (!helpFile || helpRunning)
     return FALSE;
 #endif
@@ -208,7 +208,7 @@ bool wxXLPHelpController::Run(void)
 
   char server[32];
   sprintf(server, "%d", helpServer);
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   // Only one instance of wxHelp under Windows.
   // See if there's already an instance of wxHelp
   if ((helpConnection = (wxXLPHelpConnection *)helpClient.MakeConnection(helpHost, server, "WXHELP")))
index 05bd8acb9d9a8eac79905d1eed5ff628f54f2c3f..537816c80d55268194409fd73aa487f41874dc49 100644 (file)
@@ -93,7 +93,7 @@ void wxPanel::OnNavigationKey(wxNavigationKeyEvent& event)
   wxWindow *winFocus = event.GetCurrentFocus();
   
   // @@@ no FindFocus() in wxGTK
-  #ifndef __GTK__
+  #ifndef __WXGTK__
     if ( winFocus == NULL )
       winFocus = wxWindow::FindFocus();
   #endif
index cfbd632c42ba24ef308445e77ad530e22c81eb65..cf3e8a61ff416ae465a424e2422de627c9d4a90c 100644 (file)
@@ -425,7 +425,7 @@ void wxGenericPageSetupDialog::OnPrinter(wxCommandEvent& WXUNUSED(event))
 
     genericPrintSetupDialog->Close(TRUE);
   }
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   else
   {
     wxPrintData data;
index 8cabb75feb5d89dab73cff8d6f65e397efb92959..fa2bfe37407a29d39ed31255ab4c4cdd9d7ca1a9 100644 (file)
@@ -20,7 +20,7 @@
 #include "wx/utils.h"
 #include "wx/dcclient.h"
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include "windows.h"
 #endif
 
@@ -103,7 +103,7 @@ void wxScrolledWindow::SetScrollbars (int pixelsPerUnitX, int pixelsPerUnitY,
    
    if (do_refresh && !noRefresh) Refresh();
    
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     UpdateWindow ((HWND) GetHWND());
 #endif
 }
@@ -403,7 +403,7 @@ void wxScrolledWindow::Scroll (int x_pos, int y_pos)
       SetScrollPos (wxVERTICAL, y_pos, TRUE);
     }
   Refresh();
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   ::UpdateWindow ((HWND) GetHWND());
 #endif
 }
index 2f5c66c8f09597ab7068718f52ab59250062fd33..5e2d82f92b33a1dba32d76aa80f2e9c46ae420ef 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "wx/generic/statusbr.h"
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include <windows.h>
 
 #ifdef DrawText
@@ -123,7 +123,7 @@ void wxStatusBar::SetStatusText(const wxString& text, int number)
 
   Refresh();
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   // For some reason, this can cause major GDI problems - graphics
   // all over the place. E.g. in print previewing.
 //  ::UpdateWindow((HWND) GetHWND());
index 57c0e17ea472b7a4c8326dea4e56181dc3e103a7..95fef3444bb409779652df33592d6eca5248e4ae 100644 (file)
@@ -21,7 +21,7 @@
 #endif
 
 /* define the system to compile */
-#undef __GTK__
+#undef __WXGTK__
 #undef __UNIX__
 #undef __LINUX__
 #undef __SGI__
index 57c0e17ea472b7a4c8326dea4e56181dc3e103a7..95fef3444bb409779652df33592d6eca5248e4ae 100644 (file)
@@ -21,7 +21,7 @@
 #endif
 
 /* define the system to compile */
-#undef __GTK__
+#undef __WXGTK__
 #undef __UNIX__
 #undef __LINUX__
 #undef __SGI__
index 84ced2d245311209e1354873d6e5dc96a3d14848..df75642221ab1d574a75b1c8f324e6b5afa34a26 100644 (file)
@@ -113,7 +113,7 @@ WARN = -Wall
 # -Wredudant-decs
 
 # Which GUI, -Dwx_xview or -Dwx_motif (don't change this)
-GUI = -D__WINDOWS__
+GUI = -D__WXMSW__
 
 # Optimization
 # OPT = -O
index 99305c33db51f8ffe75dd2e948c66f350de18417..d30e9badd217af8af611adb0e265715dec72f48e 100644 (file)
@@ -56,15 +56,15 @@ LIBS=$(WXLIB) $(EXTRALIBS) oldnames libw llibcew commdlg ddeml shell mmsystem $(
 !if "$(DLL)" == "0"
 PCH=WX.PCH
 PRECOMP=/YuWX/WXPREC.H /Fp$(WXDIR)\src\msw\$(PCH)
-CPPFLAGS= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /DWXDEBUG=1 /D__WXDEBUG__ /AL /Gt4 /Gx- /W4 /G2sw $(OPT) /D__WINDOWS__ $(PRECOMP)
-CPPFLAGS2= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /DWXDEBUG=1 /D__WXDEBUG__ /AL /Gt4 /Gx- /W4 /G2sw $(OPT) /D__WINDOWS__
+CPPFLAGS= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /DWXDEBUG=1 /D__WXDEBUG__ /AL /Gt4 /Gx- /W4 /G2sw $(OPT) /D__WXMSW__ $(PRECOMP)
+CPPFLAGS2= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /DWXDEBUG=1 /D__WXDEBUG__ /AL /Gt4 /Gx- /W4 /G2sw $(OPT) /D__WXMSW__
 LINKFLAGS=$(LINK_DEBUG_FLAGS) /NOD /SEG:512 /ONERROR:NOEXE
 DUMMY=dummy
 !else
 PCH=WX.PCH
 PRECOMP=/YuWX/WXPREC.H /Fp$(WXDIR)\src\msw\$(PCH)
-CPPFLAGS= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /AL /Gt4 /Gx- /W4 /G2s /GD $(OPT) /D__WINDOWS__ $(PRECOMP)
-CPPFLAGS2= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /AL /Gt4 /Gx- /W4 /G2s /GD $(OPT) /D__WINDOWS__
+CPPFLAGS= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /AL /Gt4 /Gx- /W4 /G2s /GD $(OPT) /D__WXMSW__ $(PRECOMP)
+CPPFLAGS2= $(DEBUG_FLAGS) $(OPTIONS) $(INC) $(EXTRAFLAGS) /AL /Gt4 /Gx- /W4 /G2s /GD $(OPT) /D__WXMSW__
 LINKFLAGS=$(LINK_DEBUG_FLAGS) /NOD /SEG:512 /ONERROR:NOEXE
 DUMMY=dummydll
 !endif
index c10cc56f390278519b1a2db5b3c16577f1a9b19e..9c3455bff639f55597784e9050d4a88235f6f399 100644 (file)
@@ -12,7 +12,7 @@ OBJSUFF = obj
 
 CC=sc
 RC=rc
-CFLAGS = -o -ml -W -D__WINDOWS__
+CFLAGS = -o -ml -W -D__WXMSW__
 LDFLAGS = -ml -W
 
 .$(SRCSUFF).obj:
index 19b8babfaf7864fe27c6d329f46ffd3ac622163c..8a668d85b2c161fe43678f5f9e03dce634fe281e 100644 (file)
@@ -54,8 +54,8 @@ RESFLAGS1   = -r -bt=windows /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa
 RESFLAGS2   = -R $(name) /i$(WXDIR)\include\msw /i$(WXDIR)\contrib\fafa
 DEBUGINFO   = debug all
 
-#CPPFLAGS    = /zw /w1 /zq /d2 /d__WIN386__ /zt4 $(MODEL) /d__WINDOWS__
-CPPFLAGS    = /zw /w1 /zq /d1 /d__WIN386__ $(MODEL) $(PRECOMP) /d__WINDOWS__ $(EXTRACPPFLAGS)
+#CPPFLAGS    = /zw /w1 /zq /d2 /d__WIN386__ /zt4 $(MODEL) /d__WXMSW__
+CPPFLAGS    = /zw /w1 /zq /d1 /d__WIN386__ $(MODEL) $(PRECOMP) /d__WXMSW__ $(EXTRACPPFLAGS)
 
 !endif
 #### END WIN386 MODE
@@ -88,8 +88,8 @@ DEBUGINFO   = debug all
 # or we get link failure (TEXT segment overflow). Is this OK for
 # 32-bit mode also? -- JACS
 # An alternative might be /zc (put string literals in code segment).
-#CPPFLAGS    = /zw /w1 /zq /d1 /zt4 $(MODEL) /d__WINDOWS__
-CPPFLAGS    = /zw /w2 /zq /d1 $(MODEL) $(PRECOMP) /d__WINDOWS__ $(EXTRACPPFLAGS)
+#CPPFLAGS    = /zw /w1 /zq /d1 /zt4 $(MODEL) /d__WXMSW__
+CPPFLAGS    = /zw /w2 /zq /d1 $(MODEL) $(PRECOMP) /d__WXMSW__ $(EXTRACPPFLAGS)
 
 !endif
 #### END WINDOWS MODE
@@ -130,7 +130,7 @@ DEBUGINFO   = debug all # Linking: comment out if operating in a non-debuggable
 OPTFLAGS=/ox /5r # /DWXDEBUG=1
 
 # /d1 for line numbers only: anything else produces an enormous wx32.lib
-CPPFLAGS    = /bt=nt /w1 /D__WIN32__ /zq $(OPTFLAGS) $(MODEL) $(PRECOMP) /d1 /d__WINDOWS__ $(EXTRACPPFLAGS)
+CPPFLAGS    = /bt=nt /w1 /D__WIN32__ /zq $(OPTFLAGS) $(MODEL) $(PRECOMP) /d1 /d__WXMSW__ $(EXTRACPPFLAGS)
 
 !endif
 #### END NT MODE
index 40327418c1c0ed87910b3c12aff427dad2ee3c22..12111a86fce4a0a1fd006b620c59cfe56600372b 100644 (file)
@@ -337,7 +337,7 @@ void wxApp::CleanUp()
 
 void wxApp::CommonInit()
 {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   wxBuffer = new char[1500];
 #else
   wxBuffer = new char[BUFSIZ + 512];
@@ -648,7 +648,7 @@ wxApp::wxApp()
   m_appName = "";
   argc = 0;
   argv = NULL;
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   m_printMode = wxPRINT_WINDOWS;
 #else
   m_printMode = wxPRINT_POSTSCRIPT;
index fc65da6e174abf6c37268a1ca52229c139279647..a692201c45a2348476636ef3ef1ce9291af664d3 100644 (file)
@@ -148,7 +148,7 @@ const char *wxFatalErrorStr = "wxWindows Fatal Error";
 const char *wxFloatToStringStr = "%.2f";
 const char *wxDoubleToStringStr = "%.2f";
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 const char *wxUserResourceStr = "TEXT";
 #endif
 
@@ -201,7 +201,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPaintDC, wxDC)
 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC, wxDC)
 IMPLEMENT_DYNAMIC_CLASS(wxScreenDC, wxWindowDC)
 
-#if defined(__WINDOWS__)
+#if defined(__WXMSW__)
 #include "wx/dcprint.h"
 IMPLEMENT_CLASS(wxPrinterDC, wxDC)
 #endif
@@ -225,7 +225,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPrintData, wxObject)
 #include "wx/colordlg.h"
 #include "wx/fontdlg.h"
 
-#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
+#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
 #include "wx/generic/colordlg.h"
 #include "wx/generic/fontdlg.h"
 IMPLEMENT_DYNAMIC_CLASS(wxGenericColourDialog, wxDialog)
@@ -268,7 +268,7 @@ IMPLEMENT_CLASS(wxHelpControllerBase, wxObject)
 
 #if USE_HELP
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include "wx/msw/helpwin.h"
 IMPLEMENT_DYNAMIC_CLASS(wxWinHelpController, wxHelpControllerBase)
 #endif
@@ -276,7 +276,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxWinHelpController, wxHelpControllerBase)
 // Generic wxHelp controller
 IMPLEMENT_CLASS(wxXLPHelpController, wxHelpControllerBase)
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 IMPLEMENT_CLASS(wxXLPHelpClient, wxDDEClient)
 IMPLEMENT_CLASS(wxXLPHelpConnection, wxDDEConnection)
 #else
@@ -397,7 +397,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxToolBarBase, wxControl)
 #include "wx/tbarsmpl.h"
 IMPLEMENT_DYNAMIC_CLASS(wxToolBarSimple, wxToolBarBase)
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include "wx/tbarmsw.h"
 IMPLEMENT_DYNAMIC_CLASS(wxToolBarMSW, wxToolBarBase)
 
@@ -426,7 +426,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxTime, wxObject)
 IMPLEMENT_DYNAMIC_CLASS(wxString, wxObject)
 #endif
 
-#ifdef __MOTIF__
+#ifdef __WXMOTIF__
 IMPLEMENT_DYNAMIC_CLASS(wxXColormap, wxObject)
 IMPLEMENT_DYNAMIC_CLASS(wxXFont, wxObject)
 IMPLEMENT_DYNAMIC_CLASS(wxXCursor, wxObject)
@@ -441,7 +441,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxBitmap, wxGDIObject)
 IMPLEMENT_DYNAMIC_CLASS(wxMask, wxObject)
 
 // This will presumably be implemented on other platforms too
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 IMPLEMENT_DYNAMIC_CLASS(wxBitmapHandler, wxObject)
 IMPLEMENT_DYNAMIC_CLASS(wxBMPResourceHandler, wxBitmapHandler)
 IMPLEMENT_DYNAMIC_CLASS(wxBMPFileHandler, wxBitmapHandler)
@@ -537,7 +537,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxPanel, wxWindow)
 #include "wx/dirdlg.h"
 #include "wx/choicdlg.h"
 
-#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
+#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
 #include "wx/generic/msgdlgg.h"
 IMPLEMENT_CLASS(wxGenericMessageDialog, wxDialog)
 #endif
@@ -547,12 +547,12 @@ IMPLEMENT_CLASS(wxSingleChoiceDialog, wxDialog)
 IMPLEMENT_CLASS(wxFileDialog, wxDialog)
 IMPLEMENT_CLASS(wxDirDialog, wxDialog)
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 IMPLEMENT_CLASS(wxMessageDialog)
 #endif
 
 #if USE_GAUGE
-#ifdef __MOTIF__
+#ifdef __WXMOTIF__
 #include "../../contrib/xmgauge/gauge.h"
 #endif
 #include "wx_gauge.h"
@@ -615,7 +615,7 @@ BEGIN_EVENT_TABLE(wxTextCtrl, wxControl)
        EVT_ERASE_BACKGROUND(wxTextCtrl::OnEraseBackground)
 END_EVENT_TABLE()
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 BEGIN_EVENT_TABLE(wxMDIParentWindow, wxFrame)
   EVT_SIZE(wxMDIParentWindow::OnSize)
   EVT_ACTIVATE(wxMDIParentWindow::OnActivate)
@@ -640,7 +640,7 @@ BEGIN_EVENT_TABLE(wxToolBarSimple, wxToolBarBase)
        EVT_MOUSE_EVENTS(wxToolBarSimple::OnMouseEvent)
 END_EVENT_TABLE()
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 BEGIN_EVENT_TABLE(wxToolBarMSW, wxToolBarBase)
        EVT_SIZE(wxToolBarMSW::OnSize)
        EVT_PAINT(wxToolBarMSW::OnPaint)
@@ -669,7 +669,7 @@ BEGIN_EVENT_TABLE(wxControl, wxWindow)
   EVT_ERASE_BACKGROUND(wxControl::OnEraseBackground)
 END_EVENT_TABLE()
 
-#if !defined(__WINDOWS__) || USE_GENERIC_DIALOGS_IN_MSW
+#if !defined(__WXMSW__) || USE_GENERIC_DIALOGS_IN_MSW
 BEGIN_EVENT_TABLE(wxGenericMessageDialog, wxDialog)
        EVT_BUTTON(wxID_YES, wxGenericMessageDialog::OnYes)
        EVT_BUTTON(wxID_NO, wxGenericMessageDialog::OnNo)
index 4541dbf2f6ca47d68c2ceb437a678fea33ae5330..66a9fdbb79547daa0bdf991fa96b2d293ad2bd0b 100644 (file)
@@ -146,7 +146,7 @@ bool wxFont::RealizeResource(void)
     else if (M_FONTDATA->m_weight == wxBOLD)
       ff_weight = FW_BOLD;
 
-#if defined(__X__) || (defined(__WINDOWS__) && USE_PORTABLE_FONTS_IN_MSW)
+#if defined(__X__) || (defined(__WXMSW__) && USE_PORTABLE_FONTS_IN_MSW)
     ff_face = wxTheFontNameDirectory.GetScreenName(M_FONTDATA->m_family, M_FONTDATA->m_weight, M_FONTDATA->m_style);
 #else
     ff_face = M_FONTDATA->m_faceName;
index 9e1e6a5997e3834e5fd00efe56407133f9bc8de8..808a63ffcf0ec5da829bc1df8ef5e617c969dddb 100644 (file)
@@ -29,7 +29,7 @@
 #if USE_HELP
 #include <time.h>
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include <wx/msw/private.h>
 #endif
 
index 23dbe73e4d5d346902fa37853aba1a223a90feda..75d427e83aded6bf1dbbf1c513976664a5ef2b86 100644 (file)
@@ -553,7 +553,7 @@ $(CFG): makefile.b32
 
 -L$(BCCDIR)\lib
 -D__WXWIN__
--D__WINDOWS__
+-D__WXMSW__
 -DWIN32
 $(OPT)
 $(DEBUG_FLAGS)
index 87e3ba77b65b96013b2d21fc849a29dfcf66ef5a..84249668ada82a0f847e3de62462ddbd0c3e3edf 100644 (file)
@@ -45,7 +45,7 @@ wxOwnerDrawn::wxOwnerDrawn(const wxTString& str,
   m_nMarginWidth = ms_nLastMarginWidth;
 }
 
-#if defined(__WINDOWS__) && defined(__WIN32__)
+#if defined(__WXMSW__) && defined(__WIN32__)
   uint wxOwnerDrawn::ms_nDefaultMarginWidth = GetSystemMetrics(SM_CXMENUCHECK);
 #else   // # what is the reasonable default?
   uint wxOwnerDrawn::ms_nDefaultMarginWidth = 15;
index 0bc12eff2957baa4af23b84e089cad20d8544637..143e0f16034c23b4ef699c038eb030848d945478 100644 (file)
@@ -79,7 +79,7 @@ bool wxPrintDialog::Create(wxWindow *p, wxPrintData* data)
   if ( data )
     printData = *data;
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   printData.SetOwnerWindow(p);
 #endif
 
index 4c4fe578376111291e42bf11ec40d23b245a39da..9ce007ee4d80af38b278208fc44e6aaf93e7d3ab 100644 (file)
@@ -559,7 +559,7 @@ bool wxCheckForInterrupt(wxWindow *wnd)
 // MSW only: get user-defined resource from the .res file.
 // Returns NULL or newly-allocated memory, so use delete[] to clean up.
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 char *wxLoadUserResource(const wxString& resourceName, const wxString& resourceType)
 {
   char *s = NULL;
index bfa74f9f0bc7dd90c8a7c5346a1fac28591f328b..8201299729a3c38801cdcf99d0eeddf2b70c08ab 100644 (file)
@@ -4355,7 +4355,7 @@ void wxWindow::OnChar(wxKeyEvent& event)
   if (vert_units)
         y_pages = (int)(v_height/vert_units) - y_page;
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   int y = 0;
 #else
   int y = y_page-1;
index 8dcc6e4dc4d940b0eedc19ea9c203a0cb16c9d7e..05c19284cfe0bfec71cb1df8a96e4e09c914de53 100644 (file)
@@ -141,9 +141,9 @@ PRECOMP=/YuWX/WXPREC.H /Fp$(WXDIR)\src\msw\$(PCH) /Fd$(WXDIR)\lib\wx.pdb
 MAKEPRECOMP=/YcWX/WXPREC.H
 !endif
 
-CPPFLAGS=$(WINFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WINDOWS__ /DDEBUG=1 $(INC) $(OPT) $(EXTRADLLFLAGS) /MD /GX /D__DEBUG__
+CPPFLAGS=$(WINFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXMSW__ /DDEBUG=1 $(INC) $(OPT) $(EXTRADLLFLAGS) /MD /GX /D__DEBUG__
 # If you don't include wxprec.h, use CPPFLAGS2
-CPPFLAGS2=$(WINFLAGS) $(DEBUG_FLAGS) /D__WINDOWS__ /DDEBUG=1 $(INC) $(EXTRAFLAGS) $(OPT) $(EXTRADLLFLAGS) /MD /GX /D__DEBUG__
+CPPFLAGS2=$(WINFLAGS) $(DEBUG_FLAGS) /D__WXMSW__ /DDEBUG=1 $(INC) $(EXTRAFLAGS) $(OPT) $(EXTRADLLFLAGS) /MD /GX /D__DEBUG__
 LINKFLAGS=$(LINK_DEBUG_FLAGS) $(WINLINKFLAGS) -entry:WinMainCRTStartup
 DUMMY=dummy
 
@@ -158,8 +158,8 @@ DUMMY=dummy
 !endif
 
 PRECOMP=/YuWX/WXPREC.H /Fp$(WXDIR)\src\msw\$(PCH) /Fd$(WXDIR)\lib\wx.pdb
-CPPFLAGS=$(WINFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WINDOWS__ $(INC) $(OPT) /D_DLL /MT $(EXTRADLLFLAGS) /D_WINDOWS /D_WINDLL
-CPPFLAGS2=$(WINFLAGS) $(DEBUG_FLAGS) /D__WINDOWS__ $(INC) $(EXTRAFLAGS) $(OPT) /D_DLL /MT $(EXTRADLLFLAGS) /D_WINDOWS /D_WINDLL
+CPPFLAGS=$(WINFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(EXTRAFLAGS) /D__WXMSW__ $(INC) $(OPT) /D_DLL /MT $(EXTRADLLFLAGS) /D_WINDOWS /D_WINDLL
+CPPFLAGS2=$(WINFLAGS) $(DEBUG_FLAGS) /D__WXMSW__ $(INC) $(EXTRAFLAGS) $(OPT) /D_DLL /MT $(EXTRADLLFLAGS) /D_WINDOWS /D_WINDLL
 LINKFLAGS=$(LINK_DEBUG_FLAGS) -machine:i386 -subsystem:windows,$(APPVER) -dll # -entry:_DllMainCRTStartup$(DLLENTRY)
 !endif
 
index f27188ac945dfea77661d001e34158299dfb43ee..7eb928ae6a6d83b2a333ab46ea91459ef53fbfa4 100644 (file)
@@ -29,7 +29,7 @@
 #include <math.h>
 #include <string.h>
 
-#if defined(__WINDOWS__) && !defined(__GNUWIN32__)
+#if defined(__WXMSW__) && !defined(__GNUWIN32__)
 #include <strstrea.h>
 #else
 #include <strstream.h>
index b73b693cdb1aa5928d9e72a28d16a21b6d63da4e..570bf6a8a400a7dd991be572b83902143101d9b8 100644 (file)
@@ -29,7 +29,7 @@
 #include <math.h>
 #include <string.h>
 
-#if defined(__WINDOWS__) && !defined(__GNUWIN32__)
+#if defined(__WXMSW__) && !defined(__GNUWIN32__)
 #include <strstrea.h>
 #else
 #include <strstream.h>
@@ -194,7 +194,7 @@ void EditorToolPalette::OnPaint(wxPaintEvent& event)
 EditorToolPalette *wxResourceManager::OnCreatePalette(wxFrame *parent)
 {
   // Load palette bitmaps
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   wxBitmap PaletteMessageBitmap("MESSAGETOOL");
   wxBitmap PaletteButtonBitmap("BUTTONTOOL");
   wxBitmap PaletteCheckBoxBitmap("CHECKBOXTOOL");
@@ -234,7 +234,7 @@ EditorToolPalette *wxResourceManager::OnCreatePalette(wxFrame *parent)
   
   palette->SetMargins(2, 2);
 /*
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   if (palette->IsKindOf(CLASSINFO(wxToolBarMSW)))
     ((wxToolBarMSW *)palette)->SetDefaultSize(22, 22);
 #endif
index 4193ebde82f3e08f7f22968b31ba7f8f55ff4d2e..cf8c3cb2824ca4dcf5db0e103535282d54255019 100644 (file)
 #include <math.h>
 #include <string.h>
 
-#if defined(__WINDOWS__) && !defined(__GNUWIN32__)
+#if defined(__WXMSW__) && !defined(__GNUWIN32__)
 #include <strstrea.h>
 #else
 #include <strstream.h>
 #endif
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include <windows.h>
 #endif
 
@@ -133,7 +133,7 @@ wxResourceManager::~wxResourceManager()
 bool wxResourceManager::Initialize()
 {
   // Set up the resource filename for each platform.
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   // dialoged.ini in the Windows directory
   char buf[256];
   GetWindowsDirectory(buf, 256);
@@ -159,7 +159,7 @@ bool wxResourceManager::Initialize()
 
   if (!m_bitmapImage)
   {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
     m_bitmapImage = new wxBitmap("WXWINBMP", wxBITMAP_TYPE_BMP_RESOURCE);
 #endif
 #ifdef __X__
@@ -168,7 +168,7 @@ bool wxResourceManager::Initialize()
   }
 
   // Initialize the image list icons
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   wxIcon icon1("DIALOG_ICON", wxBITMAP_TYPE_ICO_RESOURCE, 16, 16);
   wxIcon icon2("FOLDER1_ICON", wxBITMAP_TYPE_ICO_RESOURCE, 16, 16);
   wxIcon icon3("FOLDER2_ICON", wxBITMAP_TYPE_ICO_RESOURCE, 16, 16);
@@ -598,7 +598,7 @@ wxFrame *wxResourceManager::OnCreateEditorFrame(const char *title)
   frame->CreateStatusBar(1);
 
   frame->SetAutoLayout(TRUE);
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   wxIcon *icon = new wxIcon("DIALOGEDICON");
   frame->SetIcon(icon);
 #endif
@@ -651,7 +651,7 @@ wxResourceEditorScrolledWindow *wxResourceManager::OnCreateEditorPanel(wxFrame *
 wxToolBarBase *wxResourceManager::OnCreateToolBar(wxFrame *parent)
 {
   // Load palette bitmaps
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   wxBitmap ToolbarLoadBitmap("LOADTOOL");
   wxBitmap ToolbarSaveBitmap("SAVETOOL");
   wxBitmap ToolbarNewBitmap("NEWTOOL");
@@ -688,7 +688,7 @@ wxToolBarBase *wxResourceManager::OnCreateToolBar(wxFrame *parent)
   toolbar->SetMargins(2, 2);
 //  toolbar->GetDC()->SetBackground(wxLIGHT_GREY_BRUSH);
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
   int width = 24;
   int dx = 2;
   int gap = 6;
@@ -759,7 +759,7 @@ void wxResourceManager::UpdateResourceList()
   m_editorResourceTree->DeleteAllItems();
 
   long id = m_editorResourceTree->InsertItem(0, "Dialogs"
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
      , 1, 2
 #endif
    );
@@ -792,7 +792,7 @@ void wxResourceManager::AddItemsRecursively(long parent, wxItemResource *resourc
     imageId = 3;
   
   long id = m_editorResourceTree->InsertItem(parent, theString
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
      , imageId
 #endif
    );
index c2dcec4453effec4aba7abc6b9e2763ad51c1806..c5f07132af28566a6e59a3f70b9b4befef7a992a 100644 (file)
@@ -72,7 +72,7 @@ class wxWindowPropertyInfo;
 class wxResourceEditorProjectTree;
 class wxResourceEditorControlList;
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #define wxHelpController wxWinHelpController
 #else
 #define wxHelpController wxXLPHelpController;
index 2b560e4a5dcbbfd3ed51f8081a6b1cf1fc355553..eef90e684c2562209ba239c105644f2ffecdd3b9 100644 (file)
@@ -29,7 +29,7 @@
 #include <math.h>
 #include <string.h>
 
-#if defined(__WINDOWS__) && !defined(__GNUWIN32__)
+#if defined(__WXMSW__) && !defined(__GNUWIN32__)
 #include <strstrea.h>
 #else
 #include <strstream.h>
@@ -401,7 +401,7 @@ bool wxResourceTableWithSaving::SaveResource(ostream& stream, wxItemResource *it
         
         char buf[400];
         strcpy(buf, child->GetName());
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
         wxDos2UnixFilename(buf);
 #endif
 
index f65018724b540ecd10645953863665b54a96f3d9..4e43b02a452e23bc38614a384917b7570c7f441a 100644 (file)
 #include <math.h>
 #include <string.h>
 
-#if defined(__WINDOWS__) && !defined(__GNUWIN32__)
+#if defined(__WXMSW__) && !defined(__GNUWIN32__)
 #include <strstrea.h>
 #else
 #include <strstream.h>
 #endif
 
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
 #include <windows.h>
 #endif
 
index 32e68f547b0ac86304fff3f888bff0cd700f4b75..4bd8d72efe1103c7bc4782dac37c101460194bce 100644 (file)
@@ -29,7 +29,7 @@
 #include <math.h>
 #include <string.h>
 
-#if defined(__WINDOWS__) && !defined(__GNUWIN32__)
+#if defined(__WXMSW__) && !defined(__GNUWIN32__)
 #include <strstrea.h>
 #else
 #include <strstream.h>
index e4ba770c2f37489571bb6108fdbfa0d944ae9e6c..ac5aed868fe0f4a304debe23087b1e13928a6d6e 100644 (file)
@@ -29,7 +29,7 @@
 #include <math.h>
 #include <string.h>
 
-#if defined(__WINDOWS__) && !defined(__GNUWIN32__)
+#if defined(__WXMSW__) && !defined(__GNUWIN32__)
 #include <strstrea.h>
 #else
 #include <strstream.h>
index 0690210c7a7853f3a3d444ae5aa45b956626660e..2b8ba2555bf06ab2df7530f14f3f8d803c217e53 100644 (file)
@@ -29,7 +29,7 @@
 #include <math.h>
 #include <string.h>
 
-#if defined(__WINDOWS__) && !defined(__GNUWIN32__)
+#if defined(__WXMSW__) && !defined(__GNUWIN32__)
 #include <strstrea.h>
 #else
 #include <strstream.h>
@@ -165,7 +165,7 @@ bool wxPropertyListView::UpdatePropertyDisplayInList(wxProperty *property)
     return FALSE;
 
   int currentlySelected = propertyScrollingList->GetSelection();
-// #ifdef __WINDOWS__
+// #ifdef __WXMSW__
   wxString stringValueRepr(property->GetValue().GetStringRepresentation());
   wxString paddedString(MakeNameValueString(property->GetName(), stringValueRepr));
   int sel = FindListIndexForProperty(property);
@@ -496,7 +496,7 @@ bool wxPropertyListView::CreateControls(void)
 /*
     if (!tickBitmap)
     {
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
       tickBitmap = new wxBitmap("tick_bmp", wxBITMAP_TYPE_RESOURCE);
       crossBitmap =  new wxBitmap("cross_bmp", wxBITMAP_TYPE_RESOURCE);
       if (!tickBitmap || !crossBitmap || !tickBitmap->Ok() || !crossBitmap->Ok())