1. ListView lParam

I've been working with ListViews in Win32Lib, and I'm trying to link a record
number to a ListView item by setting it as the lParam. This works fine the first
time, but if I erase the items and refill the ListView, the lParams come back
twice what they were, i.e. record number 500 would come back as 1000. Its weird
and I have no idea why it happens. Anyone have any ideas?

~Greg

new topic     » topic index » view message » categorize

2. Re: ListView lParam

Greg Haberek wrote:
> 
the lParams come back
> twice what they were, i.e. record number 500 would come back as 1000. Its
> weird
> and I have no idea why it happens. Anyone have any ideas?
> 
> ~Greg

It sounds like lParams is storing the record numbers although you cleared
the ListView. Try lParams = {} before reloading the records.


----If you continue to do what you have always done,
you will get what you have always gotten.----

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu