X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4b67f95d2bd56876030aaf6e5582493f2b08664..47bc1060127d86222768789575295254a710f5a6:/include/wx/defs.h diff --git a/include/wx/defs.h b/include/wx/defs.h index c7b1680443..6271188f53 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -280,6 +280,19 @@ WXDLLEXPORT_DATA(extern const bool) wxFalse; #endif // VC++ +#if _MSC_VER > 1010 +#undef try +#undef except +#undef finally +#define except(x) catch(...) +#endif + +// where should i put this? we need to make sure of this as it breaks +// the code. +#if !wxUSE_IOSTREAMH && WXDEBUG +#undef WXDEBUG +#endif + // Callback function type definition typedef void (*wxFunction) (wxObject&, wxEvent&); @@ -829,6 +842,7 @@ enum { #define wxID_CLEAR 5033 #define wxID_FIND 5034 #define wxID_DUPLICATE 5035 +#define wxID_SELECTALL 5036 #define wxID_FILE1 5050 #define wxID_FILE2 5051 @@ -847,6 +861,11 @@ enum { #define wxID_NO 5104 #define wxID_STATIC 5105 +#define wxID_HIGHEST 5999 + +// Shortcut for easier dialog-unit-to-pixel conversion +#define wxDLG_UNIT(parent, pt) parent->ConvertDialogToPixels(pt) + #ifdef __WXMSW__ // Stand-ins for Windows types, to avoid // #including all of windows.h