From df2d6a0e8a8a3edd5b1ebcad2462725d64227a7b Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Tue, 29 Mar 2016 08:27:26 +0000 Subject: [PATCH] [BROWSEUI] - Add stubs for IEnumString and IAutoCompleteDropDown to CAutoComplete. Patch by Jared Smudde. CORE-11045 #resolve svn path=/trunk/; revision=71076 --- reactos/dll/win32/browseui/CAutoComplete.cpp | 48 ++++++++++++++++++++ reactos/dll/win32/browseui/CAutoComplete.h | 16 ++++++- 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/browseui/CAutoComplete.cpp b/reactos/dll/win32/browseui/CAutoComplete.cpp index cb00cb3ef51..15a900cbbe5 100644 --- a/reactos/dll/win32/browseui/CAutoComplete.cpp +++ b/reactos/dll/win32/browseui/CAutoComplete.cpp @@ -530,3 +530,51 @@ LRESULT APIENTRY CAutoComplete::ACLBoxSubclassProc(HWND hwnd, UINT uMsg, WPARAM } return 0; } + +/************************************************************************** + * IAutoCompleteDropDown + */ +HRESULT STDMETHODCALLTYPE CAutoComplete::GetDropDownStatus(DWORD *pdwFlags, LPWSTR *ppwszString) +{ + FIXME("(%p, %p, %p): stub\n", this, pdwFlags, ppwszString); + if (pdwFlags) + *pdwFlags = 0; + if (ppwszString) + *ppwszString = NULL; + return E_NOTIMPL; +} + +HRESULT STDMETHODCALLTYPE CAutoComplete::ResetEnumerator() +{ + FIXME("(%p): stub\n", this); + return E_NOTIMPL; +} + +/************************************************************************** + * IEnumString + */ +HRESULT STDMETHODCALLTYPE CAutoComplete::Next(ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched) +{ + FIXME("(%p, %d, %p, %p): stub\n", this, celt, rgelt, pceltFetched); + *pceltFetched = 0; + return E_NOTIMPL; +} + +HRESULT STDMETHODCALLTYPE CAutoComplete::Skip(ULONG celt) +{ + FIXME("(%p, %d): stub\n", this, celt); + return E_NOTIMPL; +} + +HRESULT STDMETHODCALLTYPE CAutoComplete::Reset() +{ + FIXME("(%p): stub\n", this); + return E_NOTIMPL; +} + +HRESULT STDMETHODCALLTYPE CAutoComplete::Clone(IEnumString **ppOut) +{ + FIXME("(%p, %p): stub\n", this, ppOut); + *ppOut = NULL; + return E_NOTIMPL; +} diff --git a/reactos/dll/win32/browseui/CAutoComplete.h b/reactos/dll/win32/browseui/CAutoComplete.h index c1c2ebd110f..5cbb5d89885 100644 --- a/reactos/dll/win32/browseui/CAutoComplete.h +++ b/reactos/dll/win32/browseui/CAutoComplete.h @@ -25,7 +25,9 @@ class CAutoComplete : public CComCoClass, public CComObjectRootEx, - public IAutoComplete2 + public IAutoComplete2, + public IAutoCompleteDropDown, + public IEnumString { private: BOOL enabled; @@ -52,6 +54,16 @@ public: virtual HRESULT WINAPI GetOptions(DWORD *pdwFlag); virtual HRESULT WINAPI SetOptions(DWORD dwFlag); + // IAutoCompleteDropDown + virtual HRESULT STDMETHODCALLTYPE GetDropDownStatus(DWORD *pdwFlags, LPWSTR *ppwszString); + virtual HRESULT STDMETHODCALLTYPE ResetEnumerator(); + + // IEnumString methods + virtual HRESULT STDMETHODCALLTYPE Next(ULONG celt, LPOLESTR *rgelt, ULONG *pceltFetched); + virtual HRESULT STDMETHODCALLTYPE Skip(ULONG celt); + virtual HRESULT STDMETHODCALLTYPE Reset(); + virtual HRESULT STDMETHODCALLTYPE Clone(IEnumString **ppenum); + DECLARE_REGISTRY_RESOURCEID(IDR_AUTOCOMPLETE) DECLARE_NOT_AGGREGATABLE(CAutoComplete) @@ -60,6 +72,8 @@ DECLARE_PROTECT_FINAL_CONSTRUCT() BEGIN_COM_MAP(CAutoComplete) COM_INTERFACE_ENTRY_IID(IID_IAutoComplete, IAutoComplete) COM_INTERFACE_ENTRY_IID(IID_IAutoComplete2, IAutoComplete2) + COM_INTERFACE_ENTRY_IID(IID_IAutoCompleteDropDown, IAutoCompleteDropDown) + COM_INTERFACE_ENTRY_IID(IID_IEnumString, IEnumString) END_COM_MAP() };