I've been wondering how you get that gradient effect in the non-client area of Aero windows with Glass (Transparency) enabled.
Specifically, how do you make it such that it moves both when you resize the window horizontally and also when you move the window.
From my own playing around I figure it's something like the following:
1. Create a vertical linear gradient brush with a blend at various postions.
2. Scale transform the width based on a fraction of the windows width. (For horizontal re-sizing efect)
3. Rotate transform around about 143 degrees. (Angle the lines seems to run at)
4. Negative translate transform to a fraction (something like 0.9) of the window's location. (Move lines relative to window position)
Is this right or am I missing something? If its possible could you give a bit more insight into how it works. Creating a brush for the whole screen seems an expensive operation but I could not see any other way to get consistency in the lines as you move the window around.