Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Does anyone know the API call to add items to a ComboBox?

0 views
Skip to first unread message

Andrew Mauer

unread,
Apr 24, 1998, 3:00:00 AM4/24/98
to

I'm writing a program that requires me to add between 500 and 5000 items to
it. I would like to know if there is an API call I can use to speed this
process up. If there isn't I will have to resort to adding the items to a
database and binding the ComboBox to the table, but I imagine this wouldn't
be as fast as using an API call.
I appreciate any help you can give.
Andrew Mauer
ai...@airotech.com


Priya

unread,
Apr 25, 1998, 3:00:00 AM4/25/98
to

As far as adding an item to a ComboBox is concerned, you can use
SendMessage , with the CB_ADDSTRING [Public Const CB_ADDSTRING = &H143
] Message .

Regards,
Priya

Paul

unread,
Apr 26, 1998, 3:00:00 AM4/26/98
to

Using SendMessage won't speed it up too much (if at all).

But if you use LockWindowUpdate to stop redrawing the combo first and then
use SendMessage to add the items you will get a significant speed increase.

Andrew Mauer <ai...@airotech.com> wrote in article
<6hqt0c$8ai$1...@winter.news.erols.com>...

0 new messages