Hi all.
I have a form, no border, not maximized. The form can appear anywhere on the
screen. In form load, the position and size the form needs to be is
calculated and set, then using Bitblt an image of the screen is put on the
form so that if nothing else is on or drawn on to the form then it would
appear invisible.
All works well, except on multiple monitor systems, if none of the form is
within the primary monitor then nothing of the desktop gets drawn on to the
form, if some of it is within the primary monitor then just the bit in the
primary monitor is drawn.
What I need is the Hdc for the entire desk top or the Hdc of any secondry
monitors and draw each part of the desk top to the form using 2 or more
BitBlt's.
Any pointers please on the best way to do this?
Thanks
Ivar
Ivar - 29 Feb 2008 16:18 GMT
No worries, sussed it.
Thanks for reading
Ivar
Ken Halter - 29 Feb 2008 16:20 GMT
> Hi all.
>
> What I need is the Hdc for the entire desk top or the Hdc of any secondry
> monitors and draw each part of the desk top to the form using 2 or more
> BitBlt's.
> Any pointers please on the best way to do this?
This may help...
Working with Multiple Monitors
http://www.vbaccelerator.com/home/VB/Tips/Working_with_Multiple_Monitors/article.asp
...if not, there are samples on PlanetSourceCode.com...
fwiw, I had the opposite problem (for a while), using code similar to....
Capture and Print the Screen, a Form, or any Window
http://www.thescarms.com/VBasic/capture.aspx
...which is based on a KB article with (almost) the same name... it was
capturing the entire desktop, even if it was 3 monitors wide <g>

Signature
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm