Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Help is C++/Windows

This topic is 6957 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post

Link to post
Share on other sites
Use AddString().
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.


Share this post

Link to post
Share on other sites
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).]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!