Home > Software engineering >  CListCtrl Settings selected rows
CListCtrl Settings selected rows

Time:10-25

 
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 points

CodePudding user response:

I also used this function ListControl is used the most controls

CodePudding user response:

Attribute to choose "Show selection always"

CodePudding user response:

CodePudding user response:

LVS_EX_FULLROWSELECT | LVS_EX_ONECLICKACTIVATE
  • Related