I am writing a window program with CTreeCtrl to display file system in the computer. Both directory and file are displayed in the tree.
I use SHGetFileInfo to retrieve the icon index for the files.
SHGetFileInfo(filepath, 0, &sfi, sizeof( sfi ), SHGFI_ICON | SHGFI_SMALLICON );
After program starts, if I clicked on a directory with html-typed file(s), it will take 3-5 seconds to display the expanded tree. If the clicked directory does not contain any html-typed file(s), it will expand almonst instantly. After first time, the following expansion will happen much faster.
Thanks for your help.