1. Listview deselect
I want to be able to clear a ListView selection programmatically after
action has been taken on the selected items. I haven't been able to
find how to do this in the archives.
TIA,
Mike Sabal
2. Re: Listview deselect
- Posted by cafromsw at yahoo.com
Jan 17, 2003
I do it like this;
to unselect a row;
setLVItem(LV, LVIF_STATE, Idx, 0,
0, LVIS_SELECTED, 0, 0, 0)
to select a row;
setLVItem(LV, LVIF_STATE, Idx, 0,
LVIS_SELECTED, LVIS_SELECTED, 0, 0, 0)
where LV is your ListView and Idx is the index of the
row to select/deselect
Chris cafromsw at yahoo.com
--- Sabal.Mike at notations.com wrote:
>
> I want to be able to clear a ListView selection
> programmatically after
> action has been taken on the selected items. I
> haven't been able to
> find how to do this in the archives.
>
> TIA,
> Mike Sabal
>
>
>
>
> TOPICA - Start your own email discussion group.
> FREE!
>
>
>
3. Re: Listview deselect
Thanks. That's exactly what I was looking for.
>>> cafromsw at yahoo.com 01/17/03 02:48PM >>>
I do it like this;
to unselect a row;
setLVItem(LV, LVIF_STATE, Idx, 0,
0, LVIS_SELECTED, 0, 0, 0)
to select a row;
setLVItem(LV, LVIF_STATE, Idx, 0,
LVIS_SELECTED, LVIS_SELECTED, 0, 0, 0)
where LV is your ListView and Idx is the index of the
row to select/deselect
Chris cafromsw at yahoo.com