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

Help is C++/Windows

Started by
2 comments, last by Enix 24 years, 8 months ago
Question: Are you using MFC or just plain Windows API?

--TheGoop

Advertisement
Currently im using MFC, but ive tried it without MFC and had no luck. My program hasn't taken well at being migrated to normal windows. So to answer your question im using MFC.
Im a begginer to c++/visualc++ and ive run into a prob: how in the world do I add items to a list box? say i have a listbox with the id of IDC_TEST. how would i add the item "test"(as a char array) to the list box?
thanks for reading! any help will be gratefully accepted! -Enix

[This message has been edited by Enix (edited October 04, 1999).]

Use AddString().
Format:
int AddString( LPCTSTR lpszItem );

String is appended to the list unless you have the sort flag on (LBS_SORT).

If you want it in a certain spot, use InsertString().

By the way, the MSVC help that comes with the compiler is really spiffy for finding this stuff... also http://www.codeguru.com for general MFC-related information.

-fel

~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~

This topic is closed to new replies.

Advertisement