Capturing area behind a form to create a magnifying glass
Posted on 2003-03-11
Hi, my problem is this...
I am using the Wang image controls to create a simple image viewer. I have zoom function but i would like the user to be able to use a magnifying glass to enlarge the area directly under and around the mouse. To do this i was thinking of having a form which appears when the mouse is down, and fill the background with the images behind the magnifying form with stretchblt. I would like the form to follow the mouse and not just have a form stationary in the corner.
The actual problem is that i can only get stretchblt to 'grab' what is visible on the screen, which means that the background of the magnifiying form is infact, the form!
I hope that makes sense...
Any help would be appreciated, a better way to do this?
Thanks for your Help