Now I try to make my question as clear as possible:
I have a database from ACCESS,my.mdb
the mdb only contains one table whose record has this format.
ID | Name | Data | City1 | City2
and I allready fill a few records by hand in ACCESS.
O.K ,now I construct a MFC-WIZARD database application(linking to this .mdb) and I add a ListCtrl(in report mode) into the dialogue-based-view.
I'v added 4 column-head (i.e:name,city1,city2,date) into the ListCtrl except the ID in the database table.
Now my question is:
How can I fill each corresponding row by the data from the database?(one row in listctrl is a record in .mdb)
In my application,the auto-generated crecordset has 5 viarables refering to each column in the .mdb,i think you know this.
But How I use it to fill the ListCtrl?
I dont know how to specify each item in the listctrl and fill it.
Dont be afraid to answer or comment.If I can get a useful idea from you ,I will award your certain points even another people answer it:)