PDA

Click to See Complete Forum and Search --> : Background pictures


Jan 2nd, 2001, 03:34 AM
Hi...is anybody can help me with my problem.
I want to make an application using vb5. When my application
running, all it can do is taking the picture of the active
window (whatever it is), and using it as its starting
picture, maybe takes the picture and puts it in its starting
form (the application is more like a screen saver)
Thanks.

kedaman
Jan 3rd, 2001, 08:32 AM
This wont work if you have any windows on top of your active window: Use GetDC to create a dc out from your foregroundwindow (getforegroundwindow) and then use bitblt to copy it over to your window. Then use ReleaseDC to remove the handle.