ReactOS 0.4.16-dev-2175-g9420ab7
CFontFolderViewCB.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Font Shell Extension
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: Fonts folder view callback implementation
5 * COPYRIGHT: Copyright 2026 Katayama Hirofumi MZ (katayama.hirofumi.mz@gmail.com)
6 */
7
8#pragma once
9
11 : public CComObjectRootEx<CComMultiThreadModelNoCS>
12 , public IShellFolderViewCB
13{
14 CFontExt* m_pFontExt = nullptr; // Not ref-counted!
15 IShellView* m_pShellView = nullptr; // Not ref-counted!
16 HWND m_hwndView = nullptr;
17 CComHeapPtr<ITEMIDLIST> m_pidlParent;
18 CComHeapPtr<ITEMIDLIST> m_pidl0;
19 CComHeapPtr<ITEMIDLIST> m_pidl1;
20
24
25public:
27 void Initialize(CFontExt* pFontExt, IShellView *psv, LPCITEMIDLIST pidlParent);
28
29 // IShellFolderViewCB
31
35 COM_INTERFACE_ENTRY_IID(IID_IShellFolderViewCB, IShellFolderViewCB)
37};
#define STDMETHOD(m)
Definition: basetyps.h:62
HRESULT TranslatePidl(LPITEMIDLIST *ppidlNew, LPCITEMIDLIST pidl)
BOOL FilterEvent(LONG lEvent) const
CComHeapPtr< ITEMIDLIST > m_pidl0
STDMETHOD() MessageSFVCB(UINT uMsg, WPARAM wParam, LPARAM lParam) override
CComHeapPtr< ITEMIDLIST > m_pidl1
CComHeapPtr< ITEMIDLIST > m_pidlParent
void TranslateTwoPIDLs(PIDLIST_ABSOLUTE *pidls)
IShellView * m_pShellView
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
unsigned int BOOL
Definition: ntddk_ex.h:94
#define BEGIN_COM_MAP(x)
Definition: atlcom.h:581
#define COM_INTERFACE_ENTRY_IID(iid, x)
Definition: atlcom.h:601
#define DECLARE_NOT_AGGREGATABLE(x)
Definition: atlcom.h:651
#define END_COM_MAP()
Definition: atlcom.h:592
#define DECLARE_NO_REGISTRY()
Definition: atlcom.h:639
LONG_PTR LPARAM
Definition: minwindef.h:175
UINT_PTR WPARAM
Definition: minwindef.h:174
unsigned int UINT
Definition: ndis.h:50
long LONG
Definition: pedump.c:60
ITEMIDLIST UNALIGNED * LPITEMIDLIST
Definition: shtypes.idl:41
const ITEMIDLIST UNALIGNED * LPCITEMIDLIST
Definition: shtypes.idl:42
HANDLE lEvent
Definition: tftpd.cpp:56
static void Initialize()
Definition: xlate.c:212