Link to home
Start Free TrialLog in
Avatar of riceman0
riceman0

asked on

Use of SelectClipRgn


Hello.  I'm trying to superimpose one figure on top of the other.  The figure below will scroll underneath the figure on the bottom.  My approach is this:

One picturebox (A) that contains two pictureboxes (B and C).  I draw my background on picturebox B, which I move in accordance to scrollbars (w/o having to re-draw).  That works great.  I want one static, irregularly-shaped picture (in picturebox C) to sit on top of the scrolling picture, though.  This I am trying to do by applying SelectClipRgn to the picturebox C so that you can see picturebox B scrolling behind it.  

The problem is the clipped region behind picture does not expose Picturebox B, but the *windows desktop*.  It allows the user to see all the way through the app.  How can I tell VB to not re-draw picturebox C, but to redraw the scrolled picturebox B, in the clipped non-rectangular region?

Thanks very much.
ASKER CERTIFIED SOLUTION
Avatar of Erick37
Erick37
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of riceman0
riceman0

ASKER


Wow, that was dumb.  I knew that.  Thanks, my cluelessness is your 200 points.