Receiver utilizes the extra information

To extract the additional information, the handlers need to cast the passed notification to the appropriate class. Only HandleAddedShape is shown.

      void TShapeView::HandleAddedShape(const TNotification& notification)
      {
          const TAreaNotification* areaNotification = (const TAreaNotification*)&notification;
          Invalidate(areaNotification->GetShape()->GetLooseFitBounds());
      }

[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