mirror of
https://github.com/reactos/reactos.git
synced 2024-11-01 20:32:36 +00:00
49b2b1dab1
For simplicity and short typing. JIRA issue: CORE-19469 - Replace "virtual HRESULT STDMETHODCALLTYPE m" with "STDMETHOD(m)" (m is a method name). - Replace "virtual t STDMETHODCALLTYPE m" with "STDMETHOD_(t, m)" (t is a type. m is a method name). - Use "override" keyword as possible. - CDefView should inherit IShellView3 due to override CreateViewWindow3 method. - Fix CDefView::CreateViewWindow3 (parameter prcView is const RECT *, not LPRECT).
69 lines
2.4 KiB
C++
69 lines
2.4 KiB
C++
/*
|
|
* Folder options.
|
|
*
|
|
* Copyright (C) 2016 Mark Jansen
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
*/
|
|
|
|
#ifndef _CFOLDEROPTIONS_H_
|
|
#define _CFOLDEROPTIONS_H_
|
|
|
|
class CFolderOptions :
|
|
public CComCoClass<CFolderOptions, &CLSID_ShellFldSetExt>,
|
|
public CComObjectRootEx<CComMultiThreadModelNoCS>,
|
|
public IShellPropSheetExt,
|
|
public IShellExtInit,
|
|
public IObjectWithSite
|
|
{
|
|
private:
|
|
CComPtr<IUnknown> m_pSite;
|
|
//LPITEMIDLIST pidl;
|
|
//INT iIdEmpty;
|
|
//UINT cfShellIDList;
|
|
//void SF_RegisterClipFmt();
|
|
//BOOL fAcceptFmt; /* flag for pending Drop */
|
|
//BOOL QueryDrop (DWORD dwKeyState, LPDWORD pdwEffect);
|
|
//BOOL RecycleBinIsEmpty();
|
|
|
|
public:
|
|
CFolderOptions();
|
|
~CFolderOptions();
|
|
|
|
// IShellPropSheetExt
|
|
STDMETHOD(AddPages)(LPFNSVADDPROPSHEETPAGE pfnAddPage, LPARAM lParam) override;
|
|
STDMETHOD(ReplacePage)(EXPPS uPageID, LPFNSVADDPROPSHEETPAGE pfnReplaceWith, LPARAM lParam) override;
|
|
|
|
// IShellExtInit
|
|
STDMETHOD(Initialize)(PCIDLIST_ABSOLUTE pidlFolder, IDataObject *pdtobj, HKEY hkeyProgID) override;
|
|
|
|
// IObjectWithSite
|
|
STDMETHOD(SetSite)(IUnknown *pUnkSite) override;
|
|
STDMETHOD(GetSite)(REFIID riid, void **ppvSite) override;
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_FOLDEROPTIONS)
|
|
DECLARE_NOT_AGGREGATABLE(CFolderOptions)
|
|
|
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
|
|
|
BEGIN_COM_MAP(CFolderOptions)
|
|
COM_INTERFACE_ENTRY_IID(IID_IShellPropSheetExt, IShellPropSheetExt)
|
|
COM_INTERFACE_ENTRY_IID(IID_IShellExtInit, IShellExtInit)
|
|
COM_INTERFACE_ENTRY_IID(IID_IObjectWithSite, IObjectWithSite)
|
|
END_COM_MAP()
|
|
};
|
|
|
|
#endif /* _CFOLDEROPTIONS_H_ */
|