title: How should I update the node in Virtual TreeView?
body: <p>I am using Delphi XE3 and Virtual TreeView.</p>
  
  <p>I want to use Virtual TreeView to implement a tree, when clicking "Start" button, the program will search all files and folders under a drive recursively, then add them one by one to the tree, just like Windows Explorer. Moreover, there should be a number indicating number of files and subfolders under a folder, using static text like this:</p>
  
  <p><a href="https://stackoverflow.com/questions/27275306/virtualtreeview-different-color-of-text-in-the-same-node">VirtualTreeView - different color of text in the same node</a></p>
  
  <p>In my impelemention, I find sometimes the number is not updated correctly.</p>
  
  <p>Therefore, I think the following way to refresh the node, whenever the number of files/subfolders are changed:</p>
  
  <ol>
  <li><p>Call tvItems.Change(PNode) to update the node.</p></li>
  <li><p>Call tvItems.InvalidateNode(PNode).</p></li>
  <li><p>Call tvItems.RepaintNode(PNode).</p></li>
  <li><p>Call tvItems.UpdateAction.</p></li>
  </ol>
  
  <p>However, 1 is protected method that cannot be invoked. 2 and 3 are both OK but don't know which is better for updating. 4 is not documented and don't know how to call it.</p>