Krzysztof Mossakowski
Windows Programming
2006 - Tasks
Windows Forms: forms, events
Version A
Window with red glass
The window:
Movable, resizable, maximazable, minimizable
Semitransparent red part
position: always in the middle of the window
size: always 75% of window's height and width
Technical requirements:
Gray parts of the window must be always drawn using standard color for forms background
Drawing is forbidden
(no GDI, GDI+ or other graphical library function can be used)
Using controls is forbidden
(i.e. Form.Controls collection cannot be used in any way)
More than 1 window can be created, but always only the main window can be visible on the taskbar and in Alt-Tab switch window
Visible problems with repainting during window's resizing are acceptable
Hints:
Form: Opacity, TransparencyKey
Approximate points:
red semitransparent part in accordance with technical requirements: 10.0