Krzysztof Mossakowski
Windows Programming
2009 - Tasks
Cross-sectional
Sample task
Kill the Beast
Demonstration
Functionality:
the beast runs from the right to the left edge of the screen (vertical position is random)
bitmaps
for moving and killing animations
click on the beast kills it
Hints:
WS_EX_TOPMOST, WS_SYSMENU, WS_CAPTION, GetWindowLong( hWnd, GWL_STYLE ), SetWindowLong()
MoveWindow()
SetWindowRgn(), CreateRectRgn(), CombineRgn(), DeleteObject()
WM_TIMER, WM_LBUTTONDOWN, WM_NCHITTEST (HTCLIENT)
LoadCursor( NULL, IDC_CROSS )
GetSystemMetrics() (SM_CXSCREEN, SM_CYSCREEN), SystemParametersInfo() (SPI_GETWORKAREA)