M_ViewListCtrl. SetFocus ();
M_ViewListCtrl. SetItemState (0, LVIS_SELECTED | LVIS_FOCUSED, LVIS_SELECTED | LVIS_FOCUSED);
M_ViewListCtrl. SetSelectionMark (0);
Remember to SetFocus, otherwise clearly set a line you selected, but can't you see the effect,
CodePudding user response:
pick up pointsCodePudding user response:
I also used this function ListControl is used the most controlsCodePudding user response:
Attribute to choose "Show selection always"CodePudding user response:

CodePudding user response:
LVS_EX_FULLROWSELECT | LVS_EX_ONECLICKACTIVATE