Last active
September 23, 2020 14:08
-
-
Save tablacus/ee9c315024d08d1b1d5bcbc24fdd8ab9 to your computer and use it in GitHub Desktop.
Reset 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 FV = GetFolderView(Ctrl, pt); | |
if (FV) { | |
var TV = FV.TreeView; | |
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); | |
} | |
TV.Expand(FV.FolderItem, 0); | |
} | |
} |
Author
tablacus
commented
Aug 12, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment