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
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.
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