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.
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?
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