# pragma warning(disable:4702) /* unreachable code */
# endif
-/* Deprecated functions such as sprintf, localtime */
-#if __VISUALC__ >= 1400
-#define _CRT_SECURE_NO_DEPRECATE 1
-#define _CRT_NON_CONFORMING_SWPRINTFS 1
-#endif
-
+ /*
+ VC++ 8 gives a warning when using standard functions such as sprintf,
+ localtime, ... -- stop this madness, unless the user had already done it
+ */
+ #if __VISUALC__ >= 1400
+ #ifndef _CRT_SECURE_NO_DEPRECATE
+ #define _CRT_SECURE_NO_DEPRECATE 1
+ #endif
+ #ifndef _CRT_NON_CONFORMING_SWPRINTFS
+ #define _CRT_NON_CONFORMING_SWPRINTFS 1
+ #endif
+ #endif /* VC++ 8 */
#endif /* __VISUALC__ */
/* suppress some Salford C++ warnings */
wxDOS /* wxBase under MS-DOS */
};
+/* Friendlier platform names */
+enum
+{
+ wxMotif = wxMOTIF_X,
+ wxMac = wxMAC,
+ wxMSW = wxWINDOWS,
+ wxWinCE = wxWINDOWS_CE,
+ wxWinPocketPC = wxWINDOWS_POCKETPC,
+ wxWinSmartPhone = wxWINDOWS_SMARTPHONE,
+ wxWin95= wxWIN95,
+ wxUnix = wxUNIX, /* wxBase under Unix */
+ wxPalmOS = wxPALMOS, /* PalmOS */
+ wxOS2 = wxOS2_PM,
+
+ wxMGL = 100,
+ wxCocoa
+};
+
/* ---------------------------------------------------------------------------- */
/* standard wxWidgets types */
/* ---------------------------------------------------------------------------- */
/* window is resized (currently, makes sense for wxMSW only) */
#define wxNO_FULL_REPAINT_ON_RESIZE 0
+/* A mask which can be used to filter (out) all wxWindow-specific styles.
+ */
+#define wxWINDOW_STYLE_MASK \
+ (wxVSCROLL|wxHSCROLL|wxBORDER_MASK|wxALWAYS_SHOW_SB|wxCLIP_CHILDREN| \
+ wxCLIP_SIBLINGS|wxTRANSPARENT_WINDOW|wxTAB_TRAVERSAL|wxWANTS_CHARS| \
+ wxRETAINED|wxPOPUP_WINDOW|wxFULL_REPAINT_ON_RESIZE)
+
/*
* Extra window style flags (use wxWS_EX prefix to make it clear that they
* should be passed to wxWindow::SetExtraStyle(), not SetWindowStyle())
* wxStaticText flags
*/
#define wxST_NO_AUTORESIZE 0x0001
+#define wxST_DOTS_MIDDLE 0x0002
+#define wxST_DOTS_END 0x0004
/*
* wxStaticBitmap flags
#define wxPD_REMAINING_TIME 0x0040
#define wxPD_CAN_SKIP 0x0080
-/*
- * wxDirDialog styles
- */
-
-#define wxDD_NEW_DIR_BUTTON 0x0080
/*
* extended dialog specifiers. these values are stored in a different
typedef struct _GtkItemFactory GtkItemFactory;
typedef struct _GtkSelectionData GtkSelectionData;
typedef struct _GtkTextBuffer GtkTextBuffer;
+typedef struct _GtkRange GtkRange;
typedef GtkWidget *WXWidget;
#ifdef __WXGTK20__
#define G_DISABLE_DEPRECATED
#define PANGO_DISABLE_DEPRECATED
+#define GDK_PIXBUF_DISABLE_DEPRECATED
#ifndef __VMS
/* GtkCombo is not defined on VMS if this is defined */
# define GTK_DISABLE_DEPRECATED