Jump to content
  • Advertisement

Archived

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

DisKordCoder

ListViews in MFC ?!!?

This topic is 6335 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!