Advertisement

ListViews in MFC ?!!?

Started by March 14, 2001 09:18 PM
1 comment, last by DisKordCoder 23 years, 10 months ago
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
~ 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. ~
Advertisement
Cool!!!

Thanks!!!!

This topic is closed to new replies.

Advertisement