月
月满C楼
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.TreeView1DblClick(Sender: TObject);
var
pt:Tpoint;
node:TTreeNode;
begin
GetCursorPos(pt);
ScreenToClient(pt);
node:=TreeView1.GetNodeAt(pt.X,pt.Y);
if node=nil then
exit;
caption:=node.Text;
end;
这样的代码老是获取不到
var
pt:Tpoint;
node:TTreeNode;
begin
GetCursorPos(pt);
ScreenToClient(pt);
node:=TreeView1.GetNodeAt(pt.X,pt.Y);
if node=nil then
exit;
caption:=node.Text;
end;
这样的代码老是获取不到