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

Combo-box in dev-c++

82 views
Skip to first unread message

Gedean

unread,
Mar 18, 2003, 9:18:15 AM3/18/03
to
how can I get a combo-box in dev-c++?? In all exaples i seen on
internet, it愀 for only to MS visual-c++.

Frank Kaehler

unread,
Mar 18, 2003, 9:36:45 AM3/18/03
to

"Gedean" <gedea...@bol.com.br> schrieb im Newsbeitrag
news:c313b3.030318...@posting.google.com...

> how can I get a combo-box in dev-c++?? In all exaples i seen on
> internet, it愀 for only to MS visual-c++.

first version
"create" your combo-box in your ressource-file, for example in a
dialogwindow with
"COMBOBOX id, x, y, width, height, [style, [extended-style]]"
default-style is CBS_SIMPLE | WS_TABSTOP

second version
create a combo-box-window with CreateWindow(....) with classname "COMBOBOX".

To control your ComboBox use the Window-messages beginning with CB_....,
for example: an application sends a CB_GETCOUNT message to retrieve the
number ob items in the list box of a combo box.

0 new messages