Krzysztof Mossakowski
Windows Programming
2009 - Tasks
Cross-sectional task
Mouse cursor tracing
Demonstration
Functionality:
application traces mouse cursor (with intervals about 50ms)
main window of the application is invisible at start
the only visible effect of application start is an icon in tray area
icons should be loaded from resources
double-click on application tray icon shows/hides drawings following the mouse cursor
icon used as a tray icon should be corresponding to drawings visibility (see demonstration)
tray icon has a context menu with one menu item - "Exit" - which ends the application
Technical requirements:
Alt+F4
shortcut does not close the application
mouse cursor is traced by propellers drawings
diameter of the propellers changes linear from 12 to 32 pixels
numer of the propellers is constant (24)
propellers have 50% opacity
propellers rotate clockwise
all the drawing should be flicker-free
icons to be used in the tray area:
task11_trayIcons.zip
Approximate points:
tray icon with context menu: 2.5
tracing mouse cursor with blue propellers: 5.5
propellers animation: 2.0
Links for uploading:
Solutions
Corrections