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

    Hardest question: how to get the image of the icon-view on the Destop?

    I want to get the image of the icons which are shown on the Destop.
    Notice: NOT the image of Desktop. 'Cause i dont want the wallpaper to be drawn on the image.

    As we know, the win api PrintWindow can print a winow into a dc.
    But it fails when printing the Progman window or the SysListView32 window.
    Communication of thoughts makes one strong.

  2. #2
    Join Date
    Jul 2005
    Posts
    767

    Re: Hardest question: how to get the image of the icon-view on the Destop?

    What do you mean by Progman window or the SysListView32 window?
    One's mistake cannot be your excuse!

  3. #3
    Join Date
    May 2005
    Posts
    4,954

    Re: Hardest question: how to get the image of the icon-view on the Destop?

    Quote Originally Posted by ArmStronger
    I want to get the image of the icons which are shown on the Destop.
    Notice: NOT the image of Desktop. 'Cause i dont want the wallpaper to be drawn on the image.

    As we know, the win api PrintWindow can print a winow into a dc.
    But it fails when printing the Progman window or the SysListView32 window.
    One thing you can try (theoretically it should work) is using hooking, look at ::SetWindowsHookEx() api, you have to inject your dll in the address space of the explorer.exe and then while you there you can find the window want ("SysListView32") and using standard listview messages try to dig info about the items.

    Just keep in mind that if you want to get them to your process you should use some IPC mechanism.

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

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