PreviewEvent
If your preview component handles events, the PreviewEvent function is called as appropriate.
pascal ComponentResult PreviewEvent (pnotComponent p,
EventRecord *e,
Boolean *handledEvent);
p
- Specifies your preview component. You obtain this identifier from
the Component Manager's OpenComponent function. See the chapter "Component Manager" in Inside Macintosh: More Macintosh Toolbox for details.
e
- Contains a pointer to the event structure for this operation.
handledEvent
- Contains a pointer to a Boolean value. If you completely handle an event such as a mouse-down event or keystroke, you should set the
handledEvent parameter to true. Otherwise, set it to false.