请问各位 ListView1Change与LView1SelectItem 有什么区别啊?

解决方案 »

  1.   

    Occurs immediately after an item in the list changes.Delphi syntax:type TLVChangeEvent = procedure(Sender: TObject; Item: TListItem; Change: TItemChange) of object;
    property OnChange: TLVChangeEvent;C++ syntax:typedef void __fastcall (__closure *TLVChangeEvent)(System::TObject* Sender, TListItem* Item, TItemChange Change);
    __property TLVChangeEvent OnChange = {read=FOnChange, write=FOnChange};DescriptionWrite an OnChange event handler to respond to changes in the list items. OnChange allows a response once the list has been successfully changed. The Item parameter is the list item that just changed. The Change parameter indicates the type of change that just occurred. Change is ctText if the Caption property of the item changed. Change is ctImage if the ImageIndex property of the item changed or the appropriate image list changed in the list view. Change is ctState if the Cut, Focused, or Selected property of the item changed.
    ////////////////////////////////////////////////////
    Occurs when an item is selected in the list view control.Delphi syntax:property OnSelectItem: TLVSelectItemEvent;C++ syntax:__property TLVSelectItemEvent OnSelectItem = {read=FOnSelectItem, write=FOnSelectItem};DescriptionUse OnSelectItem to perform actions when an item is selected.
    /////////差别好大啊////////////////////////////////////////////
      

  2.   

    ListView1Change选中另一个不同的行
    LView1SelectItem鼠标选中