Solved

List controls ?

Posted on 1998-07-22
2
164 Views
Last Modified: 2013-11-20
I am using list control to display certain information. Based on the users choice, I construct the list control with different set of columns and items. I use only one  list control but the user has three  options. In each option the list control has different set of fields.  Iam using the ccommand DeleteColumns and DeleteAllItems before initializing the list control for every choice. I keep track of the number of columns the previous choice has created for the list ctrl and I delete the same number of columns for the new choice. After this I proceed to construct the list control for the new choice. But this procedure does not works as there aalways remains some remnants.. One or two undeleted columns do  always exist. What do I do? Please advvise.
0
Comment
Question by:meyaps
2 Comments
 
LVL 2

Accepted Solution

by:
jstolan earned 50 total points
Comment Utility
I suspect you may be deleting the columns in the wrong order.  For example:  If you have two columns 0 and 1 and you delete column 0 first, then delete column 1 it won't work.  Why? Because column 1 becomes column 0 once the original column 0 is deleted.

If that's not the problem, can you show us some sample code of what you're doing?
0
 

Author Comment

by:meyaps
Comment Utility
Thank you Jstolan. It was my mistake for not knowing abt list controls. Thanks for the assistance, it worked. bye!
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now