Last active
November 13, 2021 22:36
-
-
Save tablacus/fbb73903a0456929e1a64bb0be4b47a1 to your computer and use it in GitHub Desktop.
Reset side tree view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} | |
} |
Author
tablacus
commented
Aug 30, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment