Originally posted by RussG1
The mask parameter for SetItemState is a stateMask and LVIS_SELECTED can be used for this parameter to tell SetItemState that you want only the items selection bits to be changed, so you can use LVIS_SELECTED as a mask value in this case.

Russ
Yes.

I am sorry that I was confused.