[SHELL32] Display cut items as ghosted (#7739)

- When Ctrl+X is pressed on a selected item, it will appear ghosted until another clipboard action takes place.
- Generate SHCNE_UPDATE* notifications when file attributes change.
- When an items hidden attribute is changed (filesystem notification), we must update the ghosted state.

CORE-9465
This commit is contained in:
Whindmar Saksit 2025-03-02 13:07:23 +01:00 committed by GitHub
parent c3505bb4f6
commit f1a66daeeb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 158 additions and 46 deletions

View file

@ -430,7 +430,7 @@ HRESULT CNewMenu::SelectNewItem(LONG wEventId, UINT uFlags, LPWSTR pszName, BOOL
return S_OK;
/* Get a pointer to the shell view */
hr = IUnknown_QueryService(m_pSite, SID_IFolderView, IID_PPV_ARG(IShellView, &lpSV));
hr = IUnknown_QueryService(m_pSite, SID_SFolderView, IID_PPV_ARG(IShellView, &lpSV));
if (FAILED_UNEXPECTEDLY(hr))
return S_OK;