diff --git a/include/wx/msw/textentry.h b/include/wx/msw/textentry.h index c42ef8d89d..511797d90f 100644 --- a/include/wx/msw/textentry.h +++ b/include/wx/msw/textentry.h @@ -75,7 +75,9 @@ protected: // wxUSE_OLE as OleInitialize() is not called then #if wxUSE_OLE virtual bool DoAutoCompleteStrings(const wxArrayString& choices); +#if wxUSE_DYNLIB_CLASS virtual bool DoAutoCompleteFileNames(int flags); +#endif // wxUSE_DYNLIB_CLASS virtual bool DoAutoCompleteCustom(wxTextCompleter *completer); #endif // wxUSE_OLE diff --git a/src/msw/textentry.cpp b/src/msw/textentry.cpp index 02936ead75..67e03be153 100644 --- a/src/msw/textentry.cpp +++ b/src/msw/textentry.cpp @@ -744,6 +744,8 @@ void wxTextEntry::GetSelection(long *from, long *to) const #ifdef HAS_AUTOCOMPLETE +#if wxUSE_DYNLIB_CLASS + bool wxTextEntry::DoAutoCompleteFileNames(int flags) { typedef HRESULT (WINAPI *SHAutoComplete_t)(HWND, DWORD); @@ -791,6 +793,8 @@ bool wxTextEntry::DoAutoCompleteFileNames(int flags) return true; } +#endif // wxUSE_DYNLIB_CLASS + wxTextAutoCompleteData *wxTextEntry::GetOrCreateCompleter() { if ( !m_autoCompleteData )