![]() | InDesign SDK 20.5 |
#include <IDrwEvtHandler.h>

Public Member Functions | |
| virtual void | Register (IDrwEvtDispatcher *eventDispatcher)=0 |
| virtual void | UnRegister (IDrwEvtDispatcher *eventDispatcher)=0 |
| virtual bool16 | HandleDrawEvent (ClassID eventID, void *eventData)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Any draw event handler must supply the following three routines. Register is called so the handler can register for particular draw events using the RegisterHandler() method in IDrwEvtDispatcher.h. UnRegister is the reverse of Register. HandleEvent is called when the event happens. If the handler returns true from HandleEvent, it is assumed the event has been handled, and lower priority handlers will not be called.
| pure virtual |
Take care of event that has been registered for.
| eventID | IN the event ID you are registering for - see DocumentContextID.h in kMessageIDSpace |
| eventData | IN event data in the form of a subclass of CDrawEventData depending on what the event is. For example, Draw events will be passed DrawEventData, Hit test events will be passed HitTestEventData, Inval events will be passed InvalEventData, Iterate events will be passed IterateEventData and Get BBox events will be passed GetBBoxEventData. |
Implemented in PrnSelDrawHandler, and BscDEHDrwEvtHandler.
| pure virtual |
Install self to handle events.
| eventDispatcher | IN the IDrwEvtDispatcher to handle the event |
Implemented in PrnSelDrawHandler, and BscDEHDrwEvtHandler.
| pure virtual |
Uninstall self to handle events - reverse of Register
| eventDispatcher | IN the IDrwEvtDispatcher to unregister |
Implemented in PrnSelDrawHandler, and BscDEHDrwEvtHandler.