CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 1 of 1
  1. #1
    Join Date
    Jun 2001
    Location
    Switzerland
    Posts
    4,443

    MFC List Control: How to add a subitem in a list control?

    Q: How to add a subitem in a list control?

    A:

    • Display the first item in the list control:

      Code:
      m_myListControl.InsertItem(0, "MyString");
    • Display a subitem in the list control:

      Code:
      m_myListControl.SetItemText(0, 1, "MySubitemString");



    Last edited by Andreas Masur; July 25th, 2005 at 03:40 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured