region determines the area within the window:
GetWindowRgnBox
SetWindowRgn
How to create transparent areas inside a form -- punching holes in the form
Setting the Window Region for a form