Thread: Save/Load for ListBox

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    26

    Save/Load for ListBox

    Can someone please point me to an example C program that allows to Save and Load listbox content? I know how to save and load edit box content but listbox is a bit trickier.

  2. #2
    Registered User
    Join Date
    Jun 2004
    Posts
    722
    For edit box I presume you're using SendMessage to the window... Try the same function but with a different message value.

  3. #3
    Registered User
    Join Date
    Mar 2005
    Posts
    26
    I've decided to approach this from a different way. Save the listbox content to an edit box and than save that to file.

  4. #4
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    The listbox has specific functions/methods in the Win32 API that will allow you to do many many things with them. Might I suggest using MFC?

    Code:
    CListBox MyListBox;
    MyListBox.AddString("Test");
    Something like that is all you need in MFC.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ save/load
    By XjX in forum C++ Programming
    Replies: 7
    Last Post: 02-17-2006, 02:01 PM
  2. Save/Load
    By RedRookie in forum Game Programming
    Replies: 8
    Last Post: 05-24-2005, 02:13 PM
  3. Save/Load function not working :(
    By Leeman_s in forum C++ Programming
    Replies: 6
    Last Post: 05-21-2003, 07:02 PM
  4. save/load problem
    By funkydude9 in forum C++ Programming
    Replies: 4
    Last Post: 11-08-2002, 03:22 PM
  5. Replies: 3
    Last Post: 06-04-2002, 06:11 PM