Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21839

SendMessage to change image in explorer

$
0
0
I am trying to make a program that is similar to a wallpaper changer except it changes the backgrounds inside windows explorer directories instead of the desktop. I used the Spy++ program to see if I could get some info on the control. The control used in windows explorer is apparently just a listview control. Custom background images are allowed by creating a desktop.ini file in each folder you want a background for. The problem is you need to put one in every folder and it is not possible to cycle them.

After finding that it was a listview control, I looked up source code on changing the background image of a listview. I found a few examples using sendmessage, but none of them worked (even in VB listview). I used Spy++ to temporarily get a handle of the control and then used it in my VB code with no luck; it didn't change the background image.

Can anyone give me some ideas or some sample code?


Here's one of the samples I tried: http://www.developerfusion.com/code/...kground-image/

Viewing all articles
Browse latest Browse all 21839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>