This is a tiny script that shows some of the interesting behaviors and features of the new desktop window manager in vista and windows 7 (note that aero isn't required, it just sounded good in the name). Target various windows and notice the behaviors of foreground and background objects when you mouseover/drag the client window. Take a look at what happens when you put a window in front of the client. Quite a bit different from XP, eh?
SCAR Code:
program New;
var
x, y: integer;
begin
GetClientDimensions(x, y);
DisplayDebugImgWindow(x, y);
repeat
SafeCopyCanvas(GetClientCanvas, GetDebugCanvas, 0, 0, x, y, 0, 0, x, y);
wait(25);
until(false);
end.