如何知道 Treeview,的节点是根节点
procedure
TForm1.TreeView1ContextPopup(Sender: TObject; MousePos:
TPoint;
var Handled:
Boolean);
begin
if TreeView1.Selected.IsFirstNode then
mni_delete.Enabled:=false
else
mni_delete.Enabled:=True;
end;