mirror of
https://github.com/reactos/reactos.git
synced 2024-10-29 19:13:58 +00:00
ad181d892c
CORE-9281
42 lines
1 KiB
C++
42 lines
1 KiB
C++
/*
|
|
* PROJECT: ReactOS browseui
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
* PURPOSE: Custom MRU AutoComplete List
|
|
* COPYRIGHT: Copyright 2017 Mark Jansen (mark.jansen@reactos.org)
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
class CACLCustomMRU :
|
|
public CComCoClass<CACLCustomMRU, &CLSID_ACLCustomMRU>,
|
|
public CComObjectRootEx<CComMultiThreadModelNoCS>,
|
|
public IACLCustomMRU
|
|
{
|
|
private:
|
|
CRegKey m_Key;
|
|
CStringW m_MRUList;
|
|
CSimpleArray<CStringW> m_MRUData;
|
|
bool m_bDirty;
|
|
|
|
void PersistMRU();
|
|
|
|
public:
|
|
CACLCustomMRU();
|
|
~CACLCustomMRU();
|
|
|
|
// *** IACLCustomMRU methods ***
|
|
virtual HRESULT STDMETHODCALLTYPE Initialize(LPCWSTR pwszMRURegKey, DWORD dwMax);
|
|
virtual HRESULT STDMETHODCALLTYPE AddMRUString(LPCWSTR pwszEntry);
|
|
|
|
public:
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_ACLCUSTOMMRU)
|
|
DECLARE_NOT_AGGREGATABLE(CACLCustomMRU)
|
|
|
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
|
|
|
BEGIN_COM_MAP(CACLCustomMRU)
|
|
COM_INTERFACE_ENTRY_IID(IID_IACLCustomMRU, IACLCustomMRU)
|
|
END_COM_MAP()
|
|
};
|