• Advertisement

Archived

This topic is now archived and is closed to further replies.

ListViews in MFC ?!!?

This topic is 6153 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites

  • Advertisement