the list control???

This is a discussion on the list control??? within the Windows Programming forums, part of the Platform Specific Boards category; how can i create and control a multi-colon listbox control? please point me to a good tut or e-book. thanks....

  1. #1
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768

    Question the list control???

    how can i create and control a multi-colon listbox control?

    please point me to a good tut or e-book.

    thanks.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    how can i create and control a multi-colon listbox control?
    http://www.medterms.com

    Colon: The part of the large intestine that runs from the cecum to the rectum as a long hollow tube that serves to remove water from digested food and let the remaining material, solid waste called stool, move through it to the rectum and leave the body through the anus. .
    Anyway...

    Specify WC_LISTVIEW as the class name when calling CreateWindow. I'm still struggling with these lists so you have to check the rest at MSDN or something.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227

    Re: the list control???

    Originally posted by Devil Panther
    how can i create and control a multi-colon listbox control?

    please point me to a good tut or e-book.

    thanks.
    Well, see Magos's definition for 'colon'.

    But if you want a multi-column listbox then give it the LBS_MULTICOLUMN style when you create it. You 'control' it by handling listbox messages which are prefixed with LB_ or LBS_ - search msdn for precise details.

    Alternatively, you may wish to use the common control 'listview' as suggested by Magos.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  4. #4
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    I know how to work with a list box,
    but how do I send each column the wished value?

    thanks, again.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  5. #5
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>I know how to work with a list box,<<

    Of course, which is why you are asking these questions...

    >>but how do I send each column the wished value?<<

    It doesn't work quite like that.

    If you want individually addressable columns then Magos's suggestion of a using a listview common control is a better option. Search this board for examples (there are a few) and don't forget to check out msdn, too.

  6. #6
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    The attached program creates and populates a multi column list box. This is not a particulaly sophisticated control. If you want more control, the as suggested already, look at listviews or one of the grids.

    *** EDIT ***

    Okay, so Ken gives you the answer while I'm writing the example program for you!
    Attached Files Attached Files
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  7. #7
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768
    thanks guys.
    "I don't suffer from insanity but enjoy every minute of it" - Edgar Allen Poe

    http://www.Bloodware.net - Developing free software for the community.

  8. #8
    * Death to Visual Basic * Devil Panther's Avatar
    Join Date
    Aug 2001
    Posts
    768

    Question

    just one more thing, how can I make separate columns, each one with i's own subject at top, like the one outlook has.

    thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. urgent please please..
    By peter_hii in forum C++ Programming
    Replies: 4
    Last Post: 10-30-2006, 06:35 AM
  2. Problem with linked list ADT and incomplete structure
    By prawntoast in forum C Programming
    Replies: 1
    Last Post: 04-30-2005, 02:29 AM
  3. Linked list with two class types within template.
    By SilasP in forum C++ Programming
    Replies: 3
    Last Post: 02-09-2002, 06:13 AM
  4. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 11:21 PM

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