Drawing

If you want your view to render an image when it is displayed, override its DrawContents member function so that it draws the image. See 2-D and 3-D Graphics for more information about how to render images.

While a thread is drawing your view, the thread can't do anything else. The entire view hierarchy that shares the thread is frozen while your view is drawing. If you need to do a drawing operation that is inherently slow or CPU intensive (in human interface time scales, this means most animation with a high frame rate or 3-D rendering), you need to do the computations, or even the rendering, in a different thread of execution.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker