In article <22**************************@posting.google.com >,
pr***********@yahoo.com (prashantjain) wrote:
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);