各位朋友,请问谁会用Getitemat函数,为什么我用它时,出现未定义错误,它使用的是什么单元文件,该函数的单元文件应该怎么样找?谢谢大家!

解决方案 »

  1.   

    GetItemAt是TCustomListView的函数,在子类TListView中可以调用。比如:
    ListView1.GetItemAt(10,10),返回ListView1中坐标(10,10)处所在的列表项(TListItem)。—————————————————————————————————
    宠辱不惊,看庭前花开花落,去留无意;毁誉由人,望天上云卷云舒,聚散任风。
    —————————————————————————————————
      

  2.   

    使用comctrls单元
    在帮助主题的索引里输入“Getitemat”
    找到定义:
    function GetItemAt(X, Y: Integer): TListItem;
    然后在TListItem上点鼠标
    得到如下内容:TListItem is an individual item of a TListView control. Unitcomctrls//*******注意这里**********DescriptionUse TListItem to specify the appearance and data associations of an item in a list view. All the list items of the list view are collected by a TListItems object to make up the Items property of the TListView control.