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
Addons.TaskTray.CreateIcon(); | |
te.CmdShow = SW_HIDE; |
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
if (te.Ctrls(CTRL_TC, true).Count > 1) { | |
Addons.Split.Exec(1, 1); | |
} else { | |
Addons.Split.Exec(2, 2); | |
} |
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
if (te.Ctrls(CTRL_TC, true).Count > 1) { | |
Addons.Split.Exec(1, 1); | |
} else { | |
Addons.Split.Exec(2, 3); | |
} |
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); | |
} |
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); | |
var Items = FV.Items(); | |
var bFolder = !IsFolderEx(Items.Item(0)); | |
var nCount = Items.Count; | |
var nIndex = Math.floor((nCount - 1) / 2); | |
var nDiff = nIndex; | |
while (nDiff) { | |
if (bFolder ^ IsFolderEx(Items.Item(nIndex))) { | |
nIndex += nDiff; | |
} else { |
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); | |
var Selected = FV.SelectedItems(); | |
if (Selected) { | |
var oDest = sha.NameSpace(fso.GetParentFolderName(api.GetDisplayNameOf(FV, SHGDN_FORPARSING))); | |
if (oDest) { | |
oDest.MoveHere(Selected, FOF_ALLOWUNDO); | |
} | |
} |
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); | |
var Selected = FV.SelectedItems(); | |
if (Selected && Selected.Count) { | |
var DropTarget = api.DropTarget("c:\\test"); | |
DropTarget.Drop(Selected, MK_LBUTTON | MK_SHIFT, pt, Selected.pdwEffect); | |
} |
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); | |
var Selected = FV.SelectedItems(); | |
if (Selected && Selected.Count) { | |
var DropTarget = api.DropTarget("c:\\test"); | |
DropTarget.Drop(Selected, MK_LBUTTON | MK_CONTROL, pt, Selected.pdwEffect); | |
} |
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
const FV = GetFolderView(Ctrl, pt); | |
const pid1 = FV.FolderItem; | |
const Items = api.ILGetParent(pid1).GetFolder.Items(); | |
const ar = []; | |
for (let i = Items.Count; i-- > 0;) { | |
ar[i] = i; | |
} | |
ar.sort(function (a, b) { | |
return api.CompareIDs(0, Items.Item(a), Items.Item(b)); | |
}); |
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); | |
var pid1 = FV.FolderItem; | |
var Items = api.ILGetParent(pid1).GetFolder.Items(); | |
var j = -1; | |
for (var i = 0; i < Items.Count; i++) { | |
var pid2 = Items.Item(i); | |
if (IsFolderEx(pid2)) { | |
if (api.ILIsEqual(pid1, pid2)) { | |
if (j >= 0) { | |
Navigate(Items.Item(j), SBSP_SAMEBROWSER); |