CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 1999
    Location
    Charlotte NC
    Posts
    3

    LVM_FINDITEM or Hot Key's in list views

    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.



  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: LVM_FINDITEM or Hot Key's in list views

    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.


  3. #3
    Join Date
    Sep 1999
    Location
    Charlotte NC
    Posts
    3

    Re: LVM_FINDITEM or Hot Key's in list views

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured