LPARAM
Task :
The list control program should be modified so that the LPARAM members are used. This makes the passing of data from the pointer list to the ListCtrl considerably easier.
Instructions :
- In the AddNameToListCtrl() function change the LV_ITEM mask so that the LPARAM members can be set.
- Edit the DeleteNameFromList() function to pass the data using the LPARAM method.
- Similarly edit the SetNewItem() function to pass the data using the LPARAM method.
- Add a new function so that the data in the ListCtrl may be edited. (Again use similar methods).
Help :
The MSDN library again is the recommended source of help.
Click here for a worked example
Click here for the source code
Click here to return to menu