mirror of
https://github.com/reactos/reactos.git
synced 2026-06-06 05:09:11 +08:00
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>.
34 lines
1.0 KiB
C++
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()
|
|
};
|