Knowing when user deletes a file with CFileDialog
-
I am using the CFileDialog and need to know when the user deletes a file and the file he deleted. Using Visual C++ Enterprise Edition that came with Visual Studio 07.
You mean when you delete a file/folder from within the CFileDialog dialog ? I don't know, but it's a good question, maybe there is an event that gets triggered that you could handle. maybe have a look at OFN_ENABLEHOOK, OFN_EXPLORER, or OFNHookProc ?
Maximilien Lincourt Your Head A Splode - Strong Bad
-
I am using the CFileDialog and need to know when the user deletes a file and the file he deleted. Using Visual C++ Enterprise Edition that came with Visual Studio 07.
For Windows 2000 Pro and above, maybe you could use FindFirstChangeNotification[^]. Note you'd have to use a separate thread to monitor changes with FindFirstChangeNotification(). Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: