Shell Programming
-
Dear all, I make a windows explorer like application using MFC. If the folder content was changed by other application. How to make my application know when to refresh its folder view ? Thank's
Hi. you might check the MSDN documentation for ReadDirectoryChangesW and co. APIs. There are also some nice articles on CodeProject discussing this: - CDirectoryChangeWatcher [^] - Spying a file system[^]
Kind Regards, Robert Kuster _________________ www.it.rkuster.com
-
Dear all, I make a windows explorer like application using MFC. If the folder content was changed by other application. How to make my application know when to refresh its folder view ? Thank's
If your application is going to be manipulating directories as well (creating, deleting, renaming items), be sure to use the
SHChangeNotify(...)
function to notify the shell, if necessary. Peace!-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites (Please rate this post!)