🎉 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

Started by
0 comments, last by AlexM 24 years, 7 months ago
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?

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);

Advertisement
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!

This topic is closed to new replies.

Advertisement