Click to See Complete Forum and Search --> : LVM_FINDITEM or Hot Key's in list views


meanbite
September 21st, 1999, 07:30 AM
I have the need to do a hot key search in any column in a list view control. The controls in question are sorted, manipulated, and populated through code. I have been looking at LVM_FINDITEM but have had no success. What I want is the ability to hit a particular key and go to a predefined sub item whos first character matches the key pressed. Any information is greatly appreciated.

Lothar Haensler
September 21st, 1999, 07:36 AM
why don't you use the FindItem method of the listview. It allows you to search subitems, too. the lvwSubItem constant in Argument 2 allows you to do that.

meanbite
September 21st, 1999, 10:15 AM
The problem I have found with that is that I am also sorting the list and the list inexes are not being sortecd, only the "view" of the list. This is another problem that I am working on. This causes the items not to be found even though they exist.