how can i unselecect files in a list view
-
hi sir,, iam displaying files on the list view ... like file1,file2 ...etc. after that iam providing multiple selection files on list view. that is ok.. no problem. then what problem is i would like unselect the files which files are selected. plz give me reply :sigh:
Regards, Srinivas
-
hi sir,, iam displaying files on the list view ... like file1,file2 ...etc. after that iam providing multiple selection files on list view. that is ok.. no problem. then what problem is i would like unselect the files which files are selected. plz give me reply :sigh:
Regards, Srinivas
Try this...
POSITION pstPos = GetFirstSelectedItemPosition();
while( pstPos )
{
// Get selected item index
const int nItem = GetNextSelectedItem( pstPos );// Deselect selected item
SetItemState( nItem, 0, LVIS_SELECTED );
}
Nibu thomas A Developer Code must be written to be read, not by the compiler, but by another human being. http:\\nibuthomas.wordpress.com