|
-
Feb 5th, 2002, 03:23 PM
#1
Thread Starter
Black Cat
Hiding Items thru the ListView API
Can you hide rather than delete an item in an API List View (not the VB ActiveX Control -- the listview I'm manipulating was not generated by VB). What I have now is a File Open Dialog Box where as the user types characters into the file name box, I remove files from the list view box that don't start with the letters typed. However, I need a way to put files back if they backspace, etc.
Thanks.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Feb 5th, 2002, 04:16 PM
#2
Hyperactive Member
What I would suggest is making an array and using stuff from it.
VB Code:
'...
Static i%
Dim lArray() As String
i% = i% + 1
List1.AddItem i
lArray(List1.ListCount)$ = "a string here"
'...
Get it?
[vbcode]
' comment
Rem remark
[/vbcode]
-
Feb 6th, 2002, 07:23 AM
#3
Thread Starter
Black Cat
???
I need to do this via pure API, I think. I need a message I can send instead of LVM_DELETEITEM to hide the item rather than remove it if possible, or be able to persist the whole item structure and then delete it.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
Feb 6th, 2002, 02:59 PM
#4
I don't think there is a message that you can send to hide the item. The only thing I can think of is to change it's forecolor to the color of the ListView's background.
-
Feb 7th, 2002, 11:24 AM
#5
Thread Starter
Black Cat
Ok, thanks, I'll try that, but I would think there'd be gaps in the list. I think I need to copy the items elsewhere and then delete them so I could add them back.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|