X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59396417d3285f933762d252d33ed095e6ffe299..f90913e2ac7938728beed9065f34b7d4c7593513:/include/wx/msw/textentry.h diff --git a/include/wx/msw/textentry.h b/include/wx/msw/textentry.h index 5466710e1e..ed202cac11 100644 --- a/include/wx/msw/textentry.h +++ b/include/wx/msw/textentry.h @@ -42,7 +42,12 @@ public: { DoSetSelection(from, to); } virtual void GetSelection(long *from, long *to) const; + // auto-completion uses COM under Windows so they won't work without + // wxUSE_OLE as OleInitialize() is not called then +#if wxUSE_OLE + virtual bool AutoComplete(const wxArrayString& choices); virtual bool AutoCompleteFileNames(); +#endif // wxUSE_OLE virtual bool IsEditable() const; virtual void SetEditable(bool editable);