Hello.
(I understand that this is a silly question, but I should know answer, because it's too flammable discussion is occuring now in Fidonet echoconference Ru.Delphi.Talk)
MS SDK Help as well as MSDN has three sentences:
1) The SetWindowRgn function sets the window region of a window. The
window region determines the area within the window where the system
permits drawing.
2) Window Regions
In addition to the update region, every window has a visible region that defines the window portion visible to the user.
3) In a graphical Microsoft Windows-based application, a window is a
rectangular area of the screen where the application displays output and receives input from the user.
How should I understand them correctly:
1) Window is a (rectangular area of the screen) AND (where the application displays output and receives input from the user)
or
2) Window is a (rectangular area of the screen) OR (where the application displays output and receives input from the user)
In other words, can be window itself non-rectangular

Windows and regions
marbanno
No, windows are always rectangular, defined by its top:left-right:bottom 2dimensional coordinates.
Using SetWindowRgn only redefine the region within the window, but not the window itself. A window with a non-rectangular region appears to non-rectangular as well, because the visual/interaction region has been modified in shape, but of course we still move and resize the window with its 2dimensional coordinates.
-chris