掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
TShellListViewでRoot直下のフォルダを削除すると「アクセスが拒否されました」が発生する (ID:47408)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
通りすがりさん、ありがとうございます。 以下のように修正してみましたが、症状変わらずでした。 // キーダウンイベント(Deleteキーで空フォルダを削除) procedure TForm1.ShellListView1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); var dpth : String; begin if Key = VK_DELETE then begin dpth := ShellListView1.SelectedFolder.PathName; ShellTreeView1.Path := ExtractFilePath(dpth); // ShellTreeView1.Root := ExtractFilePath(dpth); // ← こちらも症状改善せず RemoveDir(dpth); end; end;
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.