Combo Box in C++ using Win32 api

I have placed a combo box in my dialog box and in the resource file I indicated several objects to place on the list. When I use the dialog checker, I can see the list choices, but when I compile it they don't show up. I'm sure I just didn't do something simple, this is first experience with the windows api, and I don't know a whole lot about the window api.
rkcthAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chensuCommented:
>in the resource file I indicated several objects to place on the list.

How did you do that?

Are you using CB_ADDSTRING to add the strings to the list box of the combo box?

In the resource editor, you need to click on the down arrow of the combo box and resize the list box part after the cursor changes.
0
rkcthAuthor Commented:
I did not do the CB_ADDSTRING message, I'll try it out. What I did was Edited it in the Data property page of the combo box property sheet. Thank you for your help. If it works put the answer in answer form to get credit:)
0
rkcthAuthor Commented:
Tried the following code to my WM_INITDIALOG area, where IDC_CATEGORY is my combo box and hdwnd is the handle to my dialog.

SendDlgItemMessage(hdwnd, IDC_CATEGORY, CB_ADDSTRING,LPARAM)"Programming Topics", 0);

It didn't work:(
0
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

chensuCommented:
Since you mentioned a property page, it seems to me that you are using an ActiveX control. How did you put the combo box?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rkcthAuthor Commented:
I am not using an activex, I am using visual C++'s resource editor. I either right click and select properties, or I double click the combobox to get to the property sheet.
0
chensuCommented:
SendDlgItemMessage(hdwnd, IDC_CATEGORY, CB_ADDSTRING,0, LPARAM("Programming Topics"));
0
rkcthAuthor Commented:
Thank you chensu please answer the question. I am moving the points up. Thank you Thank you Thank you!
0
rkcthAuthor Commented:
Adjusted points to 200
0
rkcthAuthor Commented:
Thank you so much!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.