It’s a List vie you need you use List View messages
Might be the LVM_SETITEMSTATE, with stateMask and state set to LVIS_SELECTED