Files
reactos/dll/shellext/fontext/CFontFolderViewCB.h
Katayama Hirofumi MZ 6af07a31b0 [FONTEXT][SHELL32][SDK] Support delete operation (#8639)
Improve usability of Fonts folder.
JIRA issue: CORE-17311
- Modify PIDL design to contain
  name and filename.
- Implement CFontExt::
  ParseDisplayName to parsing
  name as PIDL.
- Modify CDefaultContextMenu::
  GetCommandString and
  CDefaultContextMenu::
  DoCopyOrCut for DFM_GETVERBA,
  DFM_GETVERBW, DFM_CMD_COPY,
  and DFM_CMD_MOVE.
- Add IDS_CONFIRM_DELETE_FONT,
  IDS_CANTDELETEFONT, and
  IDS_PROPERTIES resource strings.
- Add SHMultiFileProperties
  prototype to <shlobj.h>.
2026-02-13 18:37:06 +09:00

34 lines
1.0 KiB
C++

/*
* PROJECT: ReactOS Font Shell Extension
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
* PURPOSE: Fonts folder view callback implementation
* COPYRIGHT: Copyright 2026 Katayama Hirofumi MZ (katayama.hirofumi.mz@gmail.com)
*/
#pragma once
class CFontFolderViewCB
: public CComObjectRootEx<CComMultiThreadModelNoCS>
, public IShellFolderViewCB
{
CFontExt* m_pFontExt = nullptr;
CComPtr<IShellView> m_pShellView;
HWND m_hwndView = nullptr;
CComHeapPtr<ITEMIDLIST> m_pidlParent;
BOOL FilterEvent(PIDLIST_ABSOLUTE* apidls, LONG lEvent) const;
public:
CFontFolderViewCB() { }
void Initialize(CFontExt* pFontExt, IShellView *psv, LPCITEMIDLIST pidlParent);
// IShellFolderViewCB
STDMETHODIMP MessageSFVCB(UINT uMsg, WPARAM wParam, LPARAM lParam) override;
DECLARE_NO_REGISTRY()
DECLARE_NOT_AGGREGATABLE(CFontFolderViewCB)
BEGIN_COM_MAP(CFontFolderViewCB)
COM_INTERFACE_ENTRY_IID(IID_IShellFolderViewCB, IShellFolderViewCB)
END_COM_MAP()
};