X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0847dca672bc870e3462bc54b00a39a96c70d3ae..35bb3cb155917b4287fb2a3841bea22919a3d499:/src/msw/textentry.cpp diff --git a/src/msw/textentry.cpp b/src/msw/textentry.cpp index e868fea193..65fbc3031f 100644 --- a/src/msw/textentry.cpp +++ b/src/msw/textentry.cpp @@ -24,6 +24,7 @@ #endif #ifndef WX_PRECOMP + #include "wx/arrstr.h" #include "wx/string.h" #endif // WX_PRECOMP @@ -34,10 +35,6 @@ #include "wx/msw/private.h" -#ifndef SHACF_FILESYS_ONLY - #define SHACF_FILESYS_ONLY 0x00000010 -#endif - #define GetEditHwnd() ((HWND)(GetEditHWND())) // ---------------------------------------------------------------------------- @@ -49,6 +46,19 @@ #include "wx/msw/ole/oleutils.h" #include +#if defined(__MINGW32__) + // needed for IID_IAutoComplete, IID_IAutoComplete2 and ACO_AUTOSUGGEST + #include +#endif + +#ifndef ACO_UPDOWNKEYDROPSLIST + #define ACO_UPDOWNKEYDROPSLIST 0x20 +#endif + +#ifndef SHACF_FILESYS_ONLY + #define SHACF_FILESYS_ONLY 0x00000010 +#endif + DEFINE_GUID(CLSID_AutoComplete, 0x00bb2763, 0x6a77, 0x11d0, 0xa5, 0x35, 0x00, 0xc0, 0x4f, 0xd7, 0xd0, 0x62); @@ -130,6 +140,13 @@ public: } private: + // dtor doesn't have to be virtual as we're only ever deleted from our own + // Release() and are not meant to be derived form anyhow, but making it + // virtual silences gcc warnings; making it private makes it impossible to + // (mistakenly) delete us directly instead of calling Release() + virtual ~wxIEnumString() { } + + const wxArrayString m_strings; unsigned m_index;