Solved

Subitem not shown on column

Posted on 1997-05-19
2
211 Views
Last Modified: 2010-05-18
I want to use list control to show the database record.

...
While(!m_pSet.IsEOF())
{
      lvitem.mask = LVIF_TEXT;
      lvitem.iItem = i;
      lvitem.iSubItem = 0;
      lvitem.pszText = (LPTSTR)(LPCTSTR)m_pSet.m_Supplier;
      m_list.InsertItem(&lvitem);
      m_list.SetItemText(i, 1, (LPCTSTR)m_pSet.SupplierName;
      m_pSet.MoveNext();
      i++;
}
..

When I use the above code to add item and subitem to column, all item label(m_Supplier) can show, but only the subitem of last record can show on screen. All other subitem disappear.
Why? How to fix it?
0
Comment
Question by:edward95
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Expert Comment

by:LucHoltkamp
ID: 1163484
To few points to even read it!  
0
 
LVL 4

Accepted Solution

by:
md041797 earned 0 total points
ID: 1163485
Grade your provious responses and maybe someone will help you
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question