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);
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
Founder, Cuttlefish Industries
The Cuttlefish Engine lets anyone develop great games for iPad, iPhone, Android, WP7, the web, and more!
The Cuttlefish Engine lets anyone develop great games for iPad, iPhone, Android, WP7, the web, and more!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement