Hit testing a group

Hit detection is described in Chapter 3. To summarize, your view class needs to mix in MMouseEventHandler, and you need to implement the MouseDown function. The following code shows the constructor function where the group is created so that it can be stored in the fWagon field and made available to the MouseDown function. The MouseDown function implementation is also shown.


[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