
i
i
i
i
i
i
i
i
318 13. Programming 3D Graphics in Real Time
In response to the menu command to display the rendered model, a child
window is created, as shown in Listing 13.6. At this stage, the user can choose
to make a window which has a border and can be moved around the desktop
or one that has no border and fills the screen. Messages for the child window
are processed by its o wn message handling function, the key steps of which
are featured in Listing 13.7. The handler for the
WM PAINT message is where
most of the work for the application is done.
To allow the user to appear to pick up and look the object from all sides,
mouse m essages sent to the windo ...