Author: tfaber
Date: Tue Mar 29 08:27:26 2016
New Revision: 71076
URL:
http://svn.reactos.org/svn/reactos?rev=71076&view=rev
Log:
[BROWSEUI]
- Add stubs for IEnumString and IAutoCompleteDropDown to CAutoComplete. Patch by Jared
Smudde.
CORE-11045 #resolve
Modified:
trunk/reactos/dll/win32/browseui/CAutoComplete.cpp
trunk/reactos/dll/win32/browseui/CAutoComplete.h
Modified: trunk/reactos/dll/win32/browseui/CAutoComplete.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/browseui/CAutoCo…
==============================================================================
--- trunk/reactos/dll/win32/browseui/CAutoComplete.cpp [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/browseui/CAutoComplete.cpp [iso-8859-1] Tue Mar 29 08:27:26
2016
@@ -530,3 +530,51 @@
}
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;
+}
Modified: trunk/reactos/dll/win32/browseui/CAutoComplete.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/browseui/CAutoCo…
==============================================================================
--- trunk/reactos/dll/win32/browseui/CAutoComplete.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/browseui/CAutoComplete.h [iso-8859-1] Tue Mar 29 08:27:26
2016
@@ -25,7 +25,9 @@
class CAutoComplete :
public CComCoClass<CAutoComplete, &CLSID_AutoComplete>,
public CComObjectRootEx<CComMultiThreadModelNoCS>,
- public IAutoComplete2
+ public IAutoComplete2,
+ public IAutoCompleteDropDown,
+ public IEnumString
{
private:
BOOL enabled;
@@ -52,6 +54,16 @@
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 @@
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()
};