Results 1 to 6 of 6

Thread: Changing order of items in a list view

  1. #1

    Thread Starter
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169

    Unhappy

    I am using MFC's CListCtrl class, and am having great difficulty changing the order of items in report view. I have tried using the ListView_SortItems macro and comparison functions, but seem to have hit a brick wall. What I want to implement is a move up/down system for items in the list view. Anyone got any ideas?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Posts
    416
    Ever figure out a good method? I want to create a method that can sort my ListView, and it would take 1 param... the column to sort by.

    I know of a long, and slow method to sort, just wondering if there's anything better....

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Oh, only now realized the age of this thread. I knew something was wrong here
    That was before I joined

    Eras3r, what is the method you're using now? Maybe I'll find a way to make it faster.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4

    Thread Starter
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Whoa, 31st July 2000. Fantastic stuff. I can even remember what it was I was using it for
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    I thought I was in an alternate universe, one where Parksie USED MFC. AH HELL FROZE OVER!
    MSVS 6, .NET & .NET 2003 Pro
    I HATE MSDN with .NET & .NET 2003!!!

    Check out my sites:
    http://www.filthyhands.com
    http://www.techno-coding.com


  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    parksie is reasonable enough to know one must try something before he can despise it.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width