clistctrl question
-
i have a 1 to many dialog i show one record of many and have a list showing all. i would like have the list hilight the current record while either browsing or editting the current one. So my actual question is: Is there a way to hilight a row on a listcontrol without having focus?
-
i have a 1 to many dialog i show one record of many and have a list showing all. i would like have the list hilight the current record while either browsing or editting the current one. So my actual question is: Is there a way to hilight a row on a listcontrol without having focus?
listCtrl.SetItemState(index, LVIS_SELECTED, LVIS_SELECTED); Tomasz Sowinski -- http://www.shooltz.com
-
listCtrl.SetItemState(index, LVIS_SELECTED, LVIS_SELECTED); Tomasz Sowinski -- http://www.shooltz.com
-
i have tried that but the row is only hilighted with the control has focus. as soon as focus is lost the hilight also goes away. would be greatful for anyother suggestions. thank you.
Do you have 'Show selection always' option set in the dialog editor? If you're creating list control dynamically, use LVS_SHOWSELALWAYS style. Tomasz Sowinski -- http://www.shooltz.com
-
Do you have 'Show selection always' option set in the dialog editor? If you're creating list control dynamically, use LVS_SHOWSELALWAYS style. Tomasz Sowinski -- http://www.shooltz.com