Thread: going insane over CListBox

  1. #1
    Registered User
    Join Date
    Apr 2002
    Posts
    5

    going insane over CListBox

    ...Hi all, imma new guy here. I cannot figure out for the life of me, how to put strings into a list box. I know you use AddString() or InsertString(), and that makes sense....what doesn't make any sense, is how you specify what list box you want it to go to. To me, it would be sensible to use the IDC_LISTNAME, but alas, you dont. When i compile my code, it runs fine, but when i go to run, it just crashes and doesn't tell me why. When i do step-in, in debug, it also crashes....therefore there is no way that i can tell, to find out why. If somebody would please explain why imma moron for not being able to figure this out, i would appreciate it. If anybody wants to see the code, no problem, but wont waste space until it is requested. Thanks..peesh

  2. #2
    Registered User DeadArchDown's Avatar
    Join Date
    Apr 2002
    Posts
    28
    You may have more luck on the windows programming board. MSDN also has the answer pretty clearly.
    -------------------
    "Exception"

  3. #3
    Registered User
    Join Date
    Apr 2002
    Posts
    3
    On ur list box (in the dialog) right click & select ClassWizard. Use the add member variables to add a variable to ur list box. specify the category as control. use this variable to call the function insert string.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to update CListBox
    By rluceac in forum Windows Programming
    Replies: 3
    Last Post: 05-18-2009, 07:58 AM
  2. Insane MIdget Assassins and Abachler
    By abachler in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 05-03-2009, 11:10 AM
  3. CListBox with Font and Color can be moved(MoveWindow) as you will.
    By 梦雨林 in forum Windows Programming
    Replies: 1
    Last Post: 06-07-2007, 02:07 PM
  4. Horizontal Scroll Bars with CListBox
    By Malek in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2003, 09:58 PM
  5. CListBox & Grid :: MFC
    By kuphryn in forum Windows Programming
    Replies: 0
    Last Post: 06-07-2002, 02:44 PM