MFC, C++: Associating a value with a report-style CListCtrl row, to resolve later database queries.
Posted on 2007-11-29
I am writing an application, a database front-end, that makes heavy use of report-style CListCtrls . I would like to be able to associate a Primary key value (essentially, an integer) with a row of some of those CListCtrls, so that when the user requests more information on the record that relates to the row, I can retrieve the row's "hidden value", the primary key value, without displaying it, which is what I've been doing up until now. This is no longer appropriate.
So, how could I associated a "hidden value" with a row? It seems pretty likely that such a facility exists, for this very reason,