void CDirstatDoc::OnCleanupEmptyrecyclebin() { CModalShellApi msa; msa.EmptyRecycleBin(); RefreshRecyclers(); UpdateAllViews(NULL); }
void CDirstatDoc::OnCleanupEmptyrecyclebin() { CModalShellApi msa; if (!msa.IsRecycleBinApiSupported()) return; msa.EmptyRecycleBin(); RefreshRecyclers(); UpdateAllViews(NULL); }
void CDirstatDoc::OnCleanupDeletetotrashbin() { CItem *item= GetSelection(); if (item == NULL || item->GetType() != IT_DIRECTORY && item->GetType() != IT_FILE || item->IsRootItem()) return; if (DeletePhysicalItem(item, true)) { RefreshRecyclers(); UpdateAllViews(NULL); } }