By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,778 Members | 1,947 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,778 IT Pros & Developers. It's quick & easy.

urgent ! WIN API'S

P: n/a
HOW to create a Drop down list box in c++ using win api's
Jul 22 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"prashantjain" <pr***********@yahoo.com> wrote in message
news:22**************************@posting.google.c om...
HOW to create a Drop down list box in c++ using win api's


Answers available at newsgroup:
comp.os.ms-windows.programmer.win32

Purpose of comp.lang.c++:
http://www.slack.net/~shiva/welcome.txt

-Mike

Jul 22 '05 #2

P: n/a
Post this to:

microsoft.public.vc.mfc

Sandeep
--
http://www.EventHelix.com/EventStudio
EventStudio 2.0 - System Architecture Design CASE Tool
Jul 22 '05 #3

P: n/a
prashantjain wrote:
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

Jul 22 '05 #4

P: n/a
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);
Jul 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.