X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3d97f1823ae1bc09fe0d8b8a7bd0c3894bc6e81d..1f1c42109dce7d0760966eb57127a0bb668d50f5:/include/wx/defs.h diff --git a/include/wx/defs.h b/include/wx/defs.h index bcbb1856e6..85331769e6 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -371,25 +371,18 @@ typedef int wxWindowID; #ifdef WXMAKINGDLL #if wxUSE_BASE #define WXMAKINGDLL_BASE - #else - #define WXUSINGDLL_BASE #endif #define WXMAKINGDLL_CORE + #define WXMAKINGDLL_HTML #endif // WXMAKINGDLL -#ifdef WXUSINGDLL - #define WXUSINGDLL_BASE - #define WXUSINGDLL_CORE -#endif // WXUSINGDLL - - // WXDLLEXPORT maps to export declaration when building the DLL, to import // declaration if using it or to nothing at all if we don't use wxWin as DLL #ifdef WXMAKINGDLL_BASE #define WXDLLIMPEXP_BASE WXEXPORT #define WXDLLIMPEXP_DATA_BASE(type) WXEXPORT type -#elif defined(WXUSINGDLL_BASE) +#elif defined(WXUSINGDLL) #define WXDLLIMPEXP_BASE WXIMPORT #define WXDLLIMPEXP_DATA_BASE(type) WXIMPORT type #else // not making nor using DLL @@ -400,7 +393,7 @@ typedef int wxWindowID; #ifdef WXMAKINGDLL_CORE #define WXDLLIMPEXP_CORE WXEXPORT #define WXDLLIMPEXP_DATA_CORE(type) WXEXPORT type -#elif defined(WXUSINGDLL_CORE) +#elif defined(WXUSINGDLL) #define WXDLLIMPEXP_CORE WXIMPORT #define WXDLLIMPEXP_DATA_CORE(type) WXIMPORT type #else // not making nor using DLL @@ -408,6 +401,17 @@ typedef int wxWindowID; #define WXDLLIMPEXP_DATA_CORE(type) type #endif +#ifdef WXMAKINGDLL_HTML + #define WXDLLIMPEXP_HTML WXEXPORT + #define WXDLLIMPEXP_DATA_HTML(type) WXEXPORT type +#elif defined(WXUSINGDLL) + #define WXDLLIMPEXP_HTML WXIMPORT + #define WXDLLIMPEXP_DATA_HTML(type) WXIMPORT type +#else // not making nor using DLL + #define WXDLLIMPEXP_HTML + #define WXDLLIMPEXP_DATA_HTML(type) type +#endif + // for backwards compatibility, define suffix-less versions too #define WXDLLEXPORT WXDLLIMPEXP_CORE #define WXDLLEXPORT_DATA WXDLLIMPEXP_DATA_CORE @@ -483,6 +487,15 @@ typedef int wxWindowID; // size of statically declared array #define WXSIZEOF(array) (sizeof(array)/sizeof(array[0])) +// helper macros to be able to define unique/anonymous objects: this works by +// appending the current line number to the given identifier to reduce the +// probability of the conflict (it may still happen if this is used in the +// headers, hence you should avoid doing it or provide unique prefixes then) +#define wxCONCAT(text, line) text ## line +#define wxCONCAT_LINE2(text, line) wxCONCAT(text, line) +#define wxCONCAT_LINE(text) wxCONCAT_LINE2(text, __LINE__) +#define wxMAKE_UNIQUE_NAME(text) wxCONCAT_LINE(text) + // symbolic constant used by all Find()-like functions returning positive // integer on success as failure indicator #define wxNOT_FOUND (-1) @@ -954,19 +967,10 @@ enum wxBorder #define wxSTATIC_BORDER wxBORDER_STATIC #define wxNO_BORDER wxBORDER_NONE -// Override CTL3D etc. control colour processing to allow own background -// colour. -// Override CTL3D or native 3D styles for children -#define wxNO_3D 0x00800000 - -// OBSOLETE - use wxNO_3D instead -#define wxUSER_COLOURS wxNO_3D - // wxALWAYS_SHOW_SB: instead of hiding the scrollbar when it is not needed, // disable it - but still show (see also wxLB_ALWAYS_SB style) // -// NB: as this style is only supported by wxUniversal so far as it doesn't use -// wxUSER_COLOURS/wxNO_3D, we reuse the same style value +// NB: as this style is only supported by wxUniversal and wxMSW so far #define wxALWAYS_SHOW_SB 0x00800000 // Clip children when painting, which reduces flicker in e.g. frames and @@ -1029,6 +1033,12 @@ enum wxBorder // possibly be made to work in the future, at least on Windows #define wxWS_EX_THEMED_BACKGROUND 0x00000008 +// this window should always process idle events +#define wxWS_EX_PROCESS_IDLE 0x00000010 + +// this window should always process UI update events +#define wxWS_EX_PROCESS_UI_UPDATES 0x00000020 + // Use this style to add a context-sensitive help to the window (currently for // Win32 only and it doesn't work if wxMINIMIZE_BOX or wxMAXIMIZE_BOX are used) #define wxFRAME_EX_CONTEXTHELP 0x00000004 @@ -1062,7 +1072,10 @@ enum wxBorder // obsolete styles, unused any more #define wxDIALOG_MODAL 0x0020 // free flag value 0x0020 -#define wxDIALOG_MODELESS 0x0000 +#define wxDIALOG_MODELESS 0 +#define wxNO_3D 0 +#define wxUSER_COLOURS 0 + /* * MDI parent frame style flags @@ -1853,6 +1866,17 @@ enum wxPrintMode wxPRINT_MODE_PRINTER = 3 // Send to printer }; +// ---------------------------------------------------------------------------- +// UpdateWindowUI flags +// ---------------------------------------------------------------------------- + +enum wxUpdateUI +{ + wxUPDATE_UI_NONE = 0x0000, + wxUPDATE_UI_RECURSE = 0x0001, + wxUPDATE_UI_FROMIDLE = 0x0002 // Invoked from On(Internal)Idle +}; + // ---------------------------------------------------------------------------- // miscellaneous // ----------------------------------------------------------------------------