Krzysztof Mossakowski
Windows Programming
2006 - Tasks
Windows Forms: forms, events
Version B
Screen's curtains
4 semitransparent windows placed on edges of the screen:
No caption, no border
Red, blue, green and yellow background colors
In each window one edge can be moved - this is the only way of resizing the window
Show appropriate cursor when the mouse is placed on the edge (for resizing NS or WE)
On top of other normal windows
Only one window is visible on the taskbar and in the Alt+Tab switch window
Closing of any window should terminate the application
Technical requirements:
No problems with repainting during resizing windows
Acceptable assumption: size of the screen will not change during application's lifetime
Hints:
Screen: PrimaryScreen, Bounds
Form: Location, Width, Height, Opacity
Cursor, Cursors
Approximate points:
4 windows: 1.0
windows features: 2.5
windows positions: 1.5
windows resizing: 5.0