Author: magixmagix
Date: May 21, 2008 09:20
Hi,
I have a list view control called IDC_LIST1 . I'm using win32, non-MFC.
I have an mdb access table and want to populate records into this list view.
The way the insertion into list view seems very confusing.
// some initialization / declaration of CDatabase, and CRecordSet here...
// some record set open, sql string..
while( !recset.IsEOF() )
{
// Copy each column into a variable
recset.GetFieldValue("Name",sz_Name);
recset.GetFieldValue("ID",sz_ID);
recset.GetFieldValue("Type",sz_Type);
// how to insert record into my list view IDC_LIST1, I read in googling
that there are item, subitem, etc.
// something like SendMessage to LVM_SETITEMSTATE / LVM_INSERTITEM
// can anyone give me a very simpler way to insert those into List View,
is it necessary to have subitem ?
|