char item[] = "HELLO THERE";
combohwnd[0] = CreateWindow("COMBOBOX","",WS_CHILD|CBS_DROPDOWNLIST|CBS_SORT|CBS_HASSTRINGS,0,0,100,20,mainhwnd,1,hGInst,NULL);
SendMessage(combohwnd[0],CB_ADDSTRING,0,(LPARAM)item);
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
windows problem
i'm using the predefined combobox class in windows (VC++). it sets up just fine and i can add stings to it. They are actually there, but when i drag down the list, it doesn't show any of them! what am i missing?
Can't directly answer your question, but...
If you look at the DPCHAT example in DirectPlay, there's some combo box code in there that you could probably look at and hopefully learn from.
Mason McCuskey
Spin Studios
www.spin-studios.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement