Skip to content

Instantly share code, notes, and snippets.

@tablacus
Last active November 13, 2021 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tablacus/fbb73903a0456929e1a64bb0be4b47a1 to your computer and use it in GitHub Desktop.
Save tablacus/fbb73903a0456929e1a64bb0be4b47a1 to your computer and use it in GitHub Desktop.
Reset side tree view
var TV = Common.SideTreeView.TV;
if (TV) {
var hwnd = TV.hwndTree;
for (var hItem = api.SendMessage(hwnd, TVM_GETNEXTITEM, 0, null); hItem; hItem = api.SendMessage(hwnd, TVM_GETNEXTITEM, 1, hItem)) {
api.SendMessage(hwnd, TVM_EXPAND, 0x8001, hItem);
}
var FV = GetFolderView(Ctrl, pt);
if (FV) {
TV.Expand(FV.FolderItem, 0);
}
}
@tablacus
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment