Creating batched notifications

The previous two examples illustrate how TShapeList can notify TShapeView about the addition or removal of a shape. The second example shows how information about the area occupied by the shape can be passed in a derived class of TNotification.

The following example illustrates how you can use batched notification when multiple shapes are added to or removed from TShapeList. This approach allows TShapeView to receive only one notification and perform one invalidation for all of the shapes, rather than process a notification and perform an invalidation for each shape individually.

Batched notification is an optimization that requires the cooperation of both sender and receiver in order to receive its benefits. See "Optimizing using batched notification" on page 43 for more information.


[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