CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2013
    Posts
    21

    CListCtrl Multiple selections

    hello


    How do you select multiple folders and upload them. Search recursively? I cant find any code or examples.
    Last edited by vaas; July 13th, 2013 at 09:10 AM.

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: CListCtrl Multiple selections

    Quote Originally Posted by vaas View Post
    How do you select multiple folders and upload them.
    Why do you think we do?


    Search recursively? I cant find any code or examples.
    Maybe that's because there are two unrelated issues? Multiple selections in list view control and folder upload? What is yours?

    Besides, I'd love to understand what kind of upload this is about.
    Best regards,
    Igor

  3. #3
    Join Date
    Jul 2013
    Location
    USA
    Posts
    30

    Re: CListCtrl Multiple selections

    POSITION pos = (member variable name of your clistctrl) .GetFirstSelectedItemPosition();

    if(pos != NULL){

    while (pos){

    int row = (member variable name of your clistctrl) .GetNextSelectedItem(pos);

    (member variable name of your clistctrl) .GetItemText(row, 0)

    }


    this will loop through each selected row and grab the file name of each hope this helps

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

Featured