Thread: Storing more data in ListBoxes in C

  1. #1
    Registered User Welder's Avatar
    Join Date
    Oct 2007
    Location
    Washington
    Posts
    100

    Storing more data in ListBoxes in C

    Is there an easy way to store multiple values in a ListBox?

    For examples I am writing a simple drawing/animation program in C and want to store filepath, filename, frame delay, x offset, y offset, loop count etc....

    Is there an easy way to do this using the Win32 API? If not, is there an easy way to do this with ANSI C?

    I tried a typedef struct, but when I delete items in a listbox it starts getting confusing and really tough to deal with keeping it all manageable.

    Thanks
    -Nick

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. xor linked list
    By adramalech in forum C Programming
    Replies: 23
    Last Post: 10-14-2008, 10:13 AM
  2. Storing and accessing data from and to .txt files.
    By Glauber in forum C++ Programming
    Replies: 9
    Last Post: 05-27-2008, 02:59 PM
  3. Skipping records to text file and storing data.
    By Mr. Deeds in forum C Programming
    Replies: 5
    Last Post: 09-10-2007, 11:24 PM
  4. storing client data in server app
    By codec in forum C++ Programming
    Replies: 4
    Last Post: 03-09-2003, 10:34 PM
  5. Storing Data in a Structure
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 11-28-2001, 06:43 AM