And I have a problem with getting a list of selected files. Now I use the following code:
Code: Select all
TCHnd:= FindWindow('TTOTAL_CMD', Nil);
// Getting a list of selected files
if TCHnd<>0 then
begin
SaveClipboard; // save information of clipboard
// Send a message to the TC
SendMessage(TCHnd, EM_DISPLAYBAND, CM_CopyFullNamesToClip, 0);
// Receive information from TC
try
S:= Clipboard.AsText;
except
on E: Exception do S:='';
end;
RestoreClipboard; // move all information back to the clip
My question: is there any method to get a list of selected files from TC? Without using a clipboard.
P.S. I try to get this list using a handle of TListBox, but I ensued only numbers of selected items.