urgent ! WIN API'S

N

Noah Roberts

prashantjain said:
HOW to create a Drop down list box in c++ using win api's

I would be more interested in knowing how it is done in the loose api's.

NR
 
S

shakahshakah

HOW to create a Drop down list box in c++ using win api's

You can search on Microsoft's site for information like the following (one
long URL follows):

http://msdn.microsoft.
com/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowref
erence/windowfunctions/createwindow.asp

For comboboxes in particular, look at the remarks section on the page
previously mentioned, and it'll lead you to links like the following:

http://msdn.
microsoft.com/library/en-us/shellcc/platform/commctls/comboboxes/comboboxes.
asp

http://msdn.microsoft.
com/library/en-us/shellcc/platform/commctls/comboboxes/usingcomboboxes.asp

where you'll see example code like the following:

hwndCombo1 = CreateWindow("COMBOBOX", "",
CBS_DROPDOWN | WS_CHILD | WS_VISIBLE,
(6 * LOWORD(dwBaseUnits)) / 4,
(2 * HIWORD(dwBaseUnits)) / 8,
(100 * LOWORD(dwBaseUnits)) / 4,
(50 * HIWORD(dwBaseUnits)) / 8,
hwnd, NULL, hinst, NULL);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,147
Messages
2,570,835
Members
47,383
Latest member
EzraGiffor

Latest Threads

Top