CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2008
    Posts
    15

    ListView and EnumChildWindows

    Problem solved. Thanks.
    Last edited by pobri19; February 2nd, 2009 at 07:41 AM.

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: ListView and EnumChildWindows

    Huh
    Quote Originally Posted by MSDN
    lParam
    [in] Specifies an application-defined value to be passed to the callback function.
    Isn't that an explanation for lParam? Basically lParam can be any value you want and it will be passed to your callback function.

    You cannot use ListView_GetItemText to get text from another process because your buffer is not writable by the other process.

    I think you can use OpenProcess, VirtualAllocEx, WriteProcessMemory, ReadProcessMemory and LVM_GETITEMTEXT to get the text out.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  3. #3
    Join Date
    May 2008
    Posts
    15

    Re: ListView and EnumChildWindows

    Ok so that's the ONLY problem with the code? If that's the case, why is it saying there is 4 contacts (items in the list), when in reality there is only 2?

  4. #4
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: ListView and EnumChildWindows

    Why did you remove your original post?
    You should have left it so other people can benefit from it.
    I will still leave this thread since my previous reply might still contain usefull information to some people.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  5. #5
    Join Date
    May 2008
    Posts
    15

    Re: ListView and EnumChildWindows

    Quote Originally Posted by Marc G View Post
    Why did you remove your original post?
    You should have left it so other people can benefit from it.
    I will still leave this thread since my previous reply might still contain usefull information to some people.
    I'm sorry, I wouldn't normally, it's just that I'm working on something that I don't really want to be giving ideas out for yet. Not until I'm finished coding at least.

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