Solved

Clearing combobox. Easy.

Posted on 2000-03-24
1
216 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 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

18 Experts available now in Live!

Get 1:1 Help Now