PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Pat Dooley on July 23, 2009, 07:00:45 PM

Title: ListView and SetItemlParam
Post by: Pat Dooley on July 23, 2009, 07:00:45 PM
It seems that a ListView with LVS_REPORT style can only set or get lParam values in column zero. No matter what column is referenced in FF_ListView_SetItemlParam, FF_ListView_GetItemlParam only retrieves the column zero value.  Is this true?
Thanks,
Pat
Title: Re: ListView and SetItemlParam
Post by: TechSupport on July 23, 2009, 08:14:17 PM
Hi Pat,

Yes, that does seem to be the case. Check out this link to the MSDN documentation: http://msdn.microsoft.com/en-us/library/bb761186(VS.85).aspx

Notice the text that reads:
"You cannot set the state or lParam members for subitems because subitems do not have these attributes."

I guess that when I wrote those Set/Get wrappers that I must have thought that the lParam could be set for subitems. Looks like I was dead wrong.
Title: Re: ListView and SetItemlParam
Post by: Pat Dooley on July 23, 2009, 08:44:25 PM
That's OK. Elsewhere on the forum you provided code for using lParam with a UDT.  But I'm thinking I might just use SQLitening since it will be used elsewhere in my app. That will work and will help me keep track of lot's of variables.  Search SQLitening table for LParam value, then just get what I need. I like it.
Pat