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

ComboBox item handling?

5 views
Skip to first unread message

Jianguo Wang

unread,
Dec 23, 2002, 5:23:27 PM12/23/02
to
How can I handle a ComboBox items using win32 API? I noticed there are two
functions within windows I can call, but tehy are only for display dir, path
of the files.

Thanks!

Jianguo


Gary Chanson

unread,
Dec 24, 2002, 12:27:12 AM12/24/02
to

"Jianguo Wang" <jw...@biometricgroup.com> wrote in message
news:v0f4s7n...@corp.supernews.com...

> How can I handle a ComboBox items using win32 API? I noticed there are two
> functions within windows I can call, but tehy are only for display dir,
path
> of the files.

use CB_ADDSTRING or CB_INSERTSTRING to add items to the list. Use
CB_GETCOUNT to get a count of items in the list. Use CB_GETCURSEL and
CB_SETCURSEL to get and set the selected item. Use CB_GETLBTEXT to retrieve
item text.

--

-Gary Chanson (MS MVP for Windows SDK)
-Software Consultant (Embedded systems and Real Time Controls)
-gcha...@mvps.org

-Abolish public schools


Jianguo Wang

unread,
Dec 26, 2002, 12:03:36 PM12/26/02
to
Thanks. I made it work. ....

Jianguo
"Gary Chanson" <gcha...@NOSPAM.TheWorld.com> wrote in message
news:QeSN9.40772$3t6....@nwrddc03.gnilink.net...

0 new messages