mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:36:21 +00:00
[BROWSEUI]
- Add stubs for IEnumString and IAutoCompleteDropDown to CAutoComplete. Patch by Jared Smudde. CORE-11045 #resolve svn path=/trunk/; revision=71076
This commit is contained in:
parent
053ffccb8e
commit
df2d6a0e8a
2 changed files with 63 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 @@ 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()
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue