X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/91b8de8dee3e7ae3c4edc0ab0923b84bba20d9c4..0b6cf8797e1a7432c7b4871376a0e42696712cf0:/include/wx/defs.h diff --git a/include/wx/defs.h b/include/wx/defs.h index f0d84c9a8b..1cc239db8b 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -19,6 +19,14 @@ #include #include "wx/setup.h" + +#ifdef PACKAGE + #undef PACKAGE +#endif +#ifdef VERSION + #undef VERSION +#endif + #include "wx/version.h" // ---------------------------------------------------------------------------- @@ -84,6 +92,11 @@ # pragma warning(disable:4100) // unreferenced formal parameter # pragma warning(disable:4511) // copy ctor couldn't be generated # pragma warning(disable:4512) // operator=() couldn't be generated +#ifndef WIN32 +# pragma warning(disable:4134) // conversion between pointers to members of same class +# pragma warning(disable:4135) // conversion between different integral types +# pragma warning(disable:4769) // assignment of near pointer to long integer +#endif #endif // __VISUALC__ // suppress some Salford C++ warnings @@ -605,7 +618,13 @@ enum wxOrientation */ // use native docking #define wxMB_DOCKABLE 0x0001 +// make all menus tearoff menus, even if not set on per-menu basis +#define wxMB_TEAROFF 0x0002 +/* + * wxMenu style flags + */ +#define wxMENU_TEAROFF 0x0001 /* * Apply to all panel items @@ -905,11 +924,12 @@ typedef enum #define wxCANCEL 0x0004 #define wxYES 0x0008 #define wxNO 0x0010 - -#define wxICON_EXCLAMATION 0x0020 -#define wxICON_HAND 0x0040 -#define wxICON_QUESTION 0x0080 -#define wxICON_INFORMATION 0x0100 +#define wxNO_DEFAULT 0x0020 +#define wxYES_DEFAULT 0x0000 // has no effect +#define wxICON_EXCLAMATION 0x0040 +#define wxICON_HAND 0x0080 +#define wxICON_QUESTION 0x0100 +#define wxICON_INFORMATION 0x0200 #define wxICON_STOP wxICON_HAND #define wxICON_ASTERISK wxICON_INFORMATION