Don't Be a Square
By Al Williams, February 01, 1997
Al shows how you can free Windows programs from their square (and rectangular) confines by creating irregular-shaped windows that are simple and can be implemented in most languages. He also takes a quick look at Microsoft's Visual J++ Java development environment.
Dr. Dobb's Sourcebook January/February 1997: Don't Be a Square
Don't Be a Square
By Al Williams
Dr. Dobb's Sourcebook January/February 1997
{ Region is relative to window area }
GetWindowRect(handle,r);
{ normalize so that 0,0 is top/left }
r.right:=r.right-r.left;
r.bottom:=r.bottom-r.top;
r.left:=0;
r.top:=0;
rgn:=CreateEllipticRgn(0,0,r.right,r.bottom);
Example 1: Creating a bounding rectangle for a window.