Solved

Clearing combobox. Easy.

Posted on 2000-03-24
1
218 Views
Last Modified: 2013-11-20
How can I..

-Get the number of elements of a combobox?
-Clear the combobox?. (Delete all the elements at a time)

...with code (without using the ressource editor)

What methods do I have to do?

Thanks in advance.
0
Comment
Question by:caiman23
1 Comment
 

Accepted Solution

by:
vessel earned 50 total points
ID: 2653050
Hi, caiman23.

Use the following methods:
int CComboBox::GetCount()- returns the number of items
void CComboBox::ResetContent()- removes all items from the combobox
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

803 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