[SOLVED] LVS_OWNERDATA

tekz

Active member
Joined
Aug 22, 2015
Posts
29
Hello.

Has anyone ever worked with list-view controls that has the LVS_OWNERDATA style? I'm trying to create this control because of its benefits for my solution. Basically, I'm looking for a sample of its implementation without a cache mechanism. More documentation about how it works, than what already exists on MSDN, would also be of great help. I've tried to create this control in win32 without success, is anyone used to this list-view style?

I'm writing my project in pure C win32.

Thanks.
 
Hi there :)

Just to make sure everyone's on the same page, have you seen this set of posts from Raymond Chen's blog?

Displaying the dictionary, part 1: Naive version | The Old New Thing
Displaying the dictionary, part 2: Using text callbacks | The Old New Thing
Displaying the dictionary, part 3: Using an owner-data listview | The Old New Thing

The final part covers LVS_OWNERDATA.

(also, for the benefit of future readers, links to the standard documentation)
About List-View Controls (Windows)
List-View Window Styles (Windows)


Without knowing anything about your application it's going to be really, really hard to make any form of sensible comment. I really don't know what to say beyond what has already been said in those MSDN links.

The best thing for you to do would be to carefully write the code using LVS_OWNERDATA in exactly the way you think it should be, in as minimalistic and reproducible style as possible, and then show us what you've tried, what isn't working, and what you're aiming to achieve.

Richard
 
Didn't see those posts from Raymond, but managed to solve it by rewriting the CLI code to C from this resource, Using virtual lists - CodeProject. Concept was exactly the same. Get header for notifications by NMHDR, break on LVN_GETDISPINFO notification code, dispatch the information and dispute the text at given sub item from the dispatch.

Thanks.
 
Awesome :) Glad to hear you got it sorted out. Thanks for letting us know!
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top