Purpose
Make a form with a hole in it.
Method
Use CreateRectRgn to make a region that includes the whole form. Use
CreateEllipticRgn to create a region in the center. Use CombineRgn to subtract
the second region from the first. Then use SetWindowRgn to restrict the form
to the resulting region.
Disclaimer
This example program is provided "as is" with no warranty of any kind. It is
intended for demonstration purposes only. In particular, it does no error
handling. You can use the example in any form, but please mention
www.vb-helper.com.
评论0
最新资源