Solved

Filtering a clistctrl

Posted on 1999-01-21
5
667 Views
Last Modified: 2013-11-20
Is there any built in capacity for filtering items in a clistctrl?  I don't want to start from scratch if I don't have to..
0
Comment
Question by:appleby
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:Answers2000
ID: 1328130
Ans. No

There is a FindItem, but that's next to useless

If you are getting the items from a DB, some Data-aware activeX controls have this facility
0
 

Author Comment

by:appleby
ID: 1328131
Ok, thank you.  Do you want to officially post as an answer for the points?
0
 
LVL 1

Expert Comment

by:The_Brain
ID: 1328132
how do you want to filter it?
I could write a little filter for you if you want one.
0
 

Author Comment

by:appleby
ID: 1328133
I just want to be able to use * and ? as wildcards and treat any other characters as literal whatever they are.  Any item in the list whose text matches the filter stays. So what I need is the part that compares a string to a filter string and says yes or no.
(ex: if filter is sp*.??? then string spoil.exe would match but spoil.cc wouldn't)

If you want, go for it but I'm not really willing to up the points because I can do this myself no problem - just wasn't going to waste the code if there were a way to do the comparison easier.
0
 
LVL 8

Accepted Solution

by:
Answers2000 earned 50 total points
ID: 1328134
>> Ok, thank you.  Do you want to officially post as an answer for the points?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Named range not carried over 10 66
Prevent this page from creating additional dialogs. 3 712
Hibernate methods 2 83
bigDiff challenge 17 133
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question