Krzysztof Mossakowski
Windows Programming
2005 - Tasks
Modeless dialog boxes, owner-draw controls
Sample task
Demonstration
Functionality:
The main window:
one option in the menu: 'Dialog' - opens new dialog box
The dialog box:
animation of moving ball
don't allow to resize the dialog box
accessible standard close button
number of the dialog box in window's title
owner-draw Picture Control with size 50px x 50px
each dialog box is responsible for its ball (use one timer in each dialog box)
use one window procedure and template from resources for all dialog boxes
Hints:
IsDialogMessage
CreateDialogParam
GetWindowLong
SetWindowLong
SetWindowPos
WM_DRAWITEM
Picture Control (Toolbox\Dialog Editor)