C++ MFC

Moderators: Lundin
Number of threads: 3354
Number of posts: 9032

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
re-adding items to a list control... Posted by grahamoj on 9 Oct 2002 at 1:14 PM
hiya i have a list control with 3 columns. i am inserting all items into the columns no problem and they are displayed fine. there is an button to delete all items, and i am deleting them all fine. but when i go to add items again, it will only display the info in the FIRST column, not in the other ones...

any ideas??

thanks,
grahamoj.

p.s i know the info is still in the variables because i am displaying the data of each column in a messagebox as a test...
Report
Re: re-adding items to a list control... Posted by kuphryn on 10 Oct 2002 at 4:21 PM
You could use an LVITEM structure and insert each column one at a time. For example, the insert() function for the clistctrl has options for declaring what column you want to insert in.

Kuphryn
Report
Re: re-adding items to a list control... Posted by grahamoj on 11 Oct 2002 at 11:56 AM
: You could use an LVITEM structure and insert each column one at a time. For example, the insert() function for the clistctrl has options for declaring what column you want to insert in.
:
: Kuphryn
:
thanks, already have it done this way...
grahamoj.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.