Skip to content

Instantly share code, notes, and snippets.

@tablacus
Last active August 8, 2017 14:55
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/d95f80c640c4b5f4fc5b33e502b1aede to your computer and use it in GitHub Desktop.
Save tablacus/d95f80c640c4b5f4fc5b33e502b1aede to your computer and use it in GitHub Desktop.
Refresh (Keep selected) - Tablacus Explorer
var FV = GetFolderView(Ctrl, pt);
var Selected = FV.SelectedItems();
FV.Refresh();
if (Selected && Selected.Count) {
for (var i = Selected.Count; i--;) {
FV.SelectItem(Selected.Item(i), SVSI_SELECT);
}
FV.SelectItem(Selected.Item(0), SVSI_SELECT | SVSI_FOCUSED);
}
@tablacus
Copy link
Author

tablacus commented Aug 8, 2017

image

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