Solved

Filtering a clistctrl

Posted on 1999-01-21
5
650 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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