Skip to content

Instantly share code, notes, and snippets.

@tablacus
Created December 28, 2021 14:14
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/2d211bbf76684c98d60517f94113d9c1 to your computer and use it in GitHub Desktop.
Save tablacus/2d211bbf76684c98d60517f94113d9c1 to your computer and use it in GitHub Desktop.
Toggles the selection of focused item - Tablacus Explorer
const nFocused = FV.GetFocusedItem;
const bSelected = api.SendMessage(FV.hwndList, LVM_GETITEMSTATE, nFocused, LVIS_SELECTED);
FV.SelectItem(nFocused, bSelected ? SVSI_DESELECT : SVSI_SELECT);
@tablacus
Copy link
Author

image

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