I've read some MSDN references and it appears that the LPARAM member of the TV_ITEM structure is maintained entirely by the application. Supposing that I don't need to use it in a notification message, is there any way at all that Windows can trample on this value?
What attracts me to using LPARAM is that the same treeview can be used to get a rules selection from the user in the conventional way and also to drive processing based on the selected rules by walking the tree, providing that the decisions and actions are referenced by a member of the TV_ITEM structure, for example by using LPARAM to contain a function address.
I doubt if I am the first coder to come up with this idea, but if there are examples of this in the forums, I missed them!
What attracts me to using LPARAM is that the same treeview can be used to get a rules selection from the user in the conventional way and also to drive processing based on the selected rules by walking the tree, providing that the decisions and actions are referenced by a member of the TV_ITEM structure, for example by using LPARAM to contain a function address.
I doubt if I am the first coder to come up with this idea, but if there are examples of this in the forums, I missed them!
Comment