Krzysztof Mossakowski
Windows Programming
2005 - Tasks
Using scrollbars
Sample task
The face
Demonstration
Issues:
The face
the biggest circle in the client are of the window
always centered
change the color using left vertical scrollbar
The smile
the width and the height modifiable using horizontal and vertical scrollbars
Pupils
follow mouse cursor
The size of the window
allow to change
always scale the face to the current size
minimum size: 200px x 200px
Hints:
CreateWindow(), "SCROLLBAR"
SetScrollInfo(), GetScrollInfo()
WM_VSCROLL, WM_HSCROLL
WM_GETMINMAXINFO
atan2()