[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

Clearing combobox. Easy.

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
caiman23
Asked:
caiman23
1 Solution
 
vesselCommented:
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

Independent Software Vendors: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now