#ifdef __cplusplus
// define boolean constants: don't use true/false here as not all compilers
- // support them
- #undef TRUE
- #undef FALSE
- #define TRUE ((bool)1)
- #define FALSE ((bool)0)
+ // support them but also redefine TRUE which could have been defined as 1
+ // by previous headers: this would be incorrect as our TRUE is supposed to
+ // be of type bool, just like true, not int
+ //
+ // however if the user code absolutely needs TRUE to be defined in its own
+ // way, it can predefine WX_TRUE_DEFINED to prevent the redefinition here
+ #ifdef TRUE
+ #ifndef WX_TRUE_DEFINED
+ #undef TRUE
+ #undef FALSE
+ #endif
+ #endif
+
+ #ifndef TRUE
+ #define TRUE ((bool)1)
+ #define FALSE ((bool)0)
+ #endif
#else // !__cplusplus
// the definitions above don't work for C sources
#ifndef TRUE
#define wxDIALOG_NO_PARENT 0x0001 // Don't make owned by apps top window
#define wxFRAME_NO_TASKBAR 0x0002 // No taskbar button (MSW only)
#define wxFRAME_TOOL_WINDOW 0x0004 // No taskbar button, no system menu
+#define wxFRAME_FLOAT_ON_PARENT 0x0008 // Always above its parent
// deprecated versions defined for compatibility reasons
#define wxRESIZE_BOX wxMAXIMIZE_BOX
#define wxTHICK_FRAME wxRESIZE_BORDER
-#define wxFRAME_FLOAT_ON_PARENT wxFRAME_TOOL_WINDOW
// obsolete styles, unused any more
#define wxDIALOG_MODAL 0x0020 // free flag value 0x0020
wxDF_FILENAME = 15, /* CF_HDROP */
wxDF_LOCALE = 16,
wxDF_PRIVATE = 20,
+ wxDF_HTML = 30, /* Note: does not correspond to CF_ constant */
wxDF_MAX
};