How to add string to a drop down comb box[fixed]

Started by
1 comment, last by wild_pointer 18 years, 4 months ago

hwndCombo1 == CreateWindow("COMBOBOX", "", 
                CBS_DROPDOWN | WS_CHILD | WS_VISIBLE, 
                200, 
                250, 
                100 , 
                50 , 
                hwnd, NULL, hInst, NULL); 



that is my drop down box

SendMessage(hwndCombo1,CB_ADDSTRING, 0,(LPARAM)FileName.c_str());


and that is how I am trying to add a string to it but it is not working. If I change that to add text to a list box it works fine. Any one know what is going on? [Edited by - kingpinzs on November 30, 2005 3:34:08 PM]
Advertisement
I solved it I just had to put
hwndCombo1 == CreateWindow
to
hwndCombo1 = CreateWindow

now that is a stupid mess up.
What is the return code from SendMessage?

[edit] Heh, I didn't see that either.
[size=2]

This topic is closed to new replies.

Advertisement