Storing more data in ListBoxes in C

This is a discussion on Storing more data in ListBoxes in C within the Windows Programming forums, part of the Platform Specific Boards category; Is there an easy way to store multiple values in a ListBox? For examples I am writing a simple drawing/animation ...

  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
    32,821
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 11: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, 03:59 PM
  3. Skipping records to text file and storing data.
    By Mr. Deeds in forum C Programming
    Replies: 5
    Last Post: 09-11-2007, 12:24 AM
  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21