ListViews in MFC ?!!?
Hi all, ive got a little prob with a ListView.
Ive setup my Columns ok, and i can now insert data into the listview using:
InsertItem(int index, char* String)
but, this will only print into the first column.
How do i select the column to write to??
Any help will do thanks!
BOOL SetItemText( int nItem, int nSubItem, LPTSTR lpszText );
nItem is the row number
nSubItem is the column
lpszText is the text you wish to place in that position.
If you are using a CListView, perform this on the CListCtrl reference you get when you use GetListCtrl();
-fel
nItem is the row number
nSubItem is the column
lpszText is the text you wish to place in that position.
If you are using a CListView, perform this on the CListCtrl reference you get when you use GetListCtrl();
-fel
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement