forlano Messages: 1185 Registered: March 2006 Location: Italy
Senior Contributor
Hello,
I am using a TreeCtrl bind to a folder. It shows correctly the files inside it.
However, if I create at runtime a new file in that directory the TreeCtrl is not aware of it. What to do to put in sync the display with the folder structure?
I tried without success .Update() and .Sinc()
forlano Messages: 1185 Registered: March 2006 Location: Italy
Senior Contributor
Oblivion wrote on Sat, 18 November 2017 20:23
Hello Luigi,
AFAIK (I may be wrong) there is no U++ call for that. You need to use native api calls.
Unfortunatly the Windows API in this case are cumbersome.
However if I click on the node/folder of the TreeCtrl the new file is displayed. So a sort of sync is performed. I would like to try to simulate the close/open of the node where the file is. Unfortunately I do not understand how each node id map a given folder.
Unfortunatly the Windows API in this case are cumbersome.
However if I click on the node/folder of the TreeCtrl the new file is displayed. So a sort of sync is performed. I would like to try to simulate the close/open of the node where the file is. Unfortunately I do not understand how each node id map a given folder.
have you tried FindFile class of U++?
It can check timestamps (directory object change times).