Make SHChangeNotifyRegister be recursive so that will get all
notifications.
This commit is contained in:
parent
a91b2efc74
commit
d3b9ff2f8a
|
@ -670,7 +670,7 @@ static LRESULT ShellView_OnCreate(IShellViewImpl * This)
|
|||
if (ppf2)
|
||||
{
|
||||
IPersistFolder2_GetCurFolder(ppf2, (LPITEMIDLIST*)&ntreg.pidl);
|
||||
ntreg.fRecursive = FALSE;
|
||||
ntreg.fRecursive = TRUE;
|
||||
This->hNotify = SHChangeNotifyRegister(This->hWnd, SHCNF_IDLIST, SHCNE_ALLEVENTS, SHV_CHANGE_NOTIFY, 1, &ntreg);
|
||||
SHFree((LPITEMIDLIST)ntreg.pidl);
|
||||
IPersistFolder2_Release(ppf2);
|
||||
|
|
Loading…
Reference in New Issue