Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Help is C++/Windows

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 Enix   Members   

122
Like
Likes
Like

Posted 05 October 1999 - 05:48 AM

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).]


#2 Facehat   Members   

696
Like
Likes
Like

Posted 04 October 1999 - 02:43 PM

Question: Are you using MFC or just plain Windows API?

--TheGoop


#3 Enix   Members   

122
Like
Likes
Like

Posted 04 October 1999 - 03:07 PM

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.

#4 felisandria   Members   

739
Like
Likes
Like

Posted 05 October 1999 - 05:48 AM

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





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.