### IDMTargetEvent

  The IDMTargetEvent class is the common base class for the direct manipulation target event classes: IDMTargetEnterEvent, IDMTargetLeaveEvent, and IDMTargetDropEvent.

### IDMTargetEvent - Member Functions and Data by Group

### Constructors & Destructor

You can construct and destruct objects of this class.

~IDMTargetEvent

      public:
      virtual ~IDMTargetEvent()

  This will release the graphics drawing port if you have not explicitly called . " TARGET="content">

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

IDMTargetEvent

      public:
      IDMTargetEvent(const IEvent& event)

  Constructs objects of this class from a generic IEvent object.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### Target Emphasis

Use these members to access and release the drawing space needed to draw target emphasis.
Note: You must use the drawing (presentation) space returned by IDMTargetEvent::presSpace to draw the target emphasis. The drawing space returned by IWindow::presSpace will not work.

presSpace

      public:
      virtual IPresSpaceHandle presSpace()

  Acquires the graphics drawing port to use for drawing the target emphasis and return its handle.

Exception

  IAccessError | The presentation space was not obtained. An invalid window handle may have been specified or a direct manipulation is not in progress.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

releasePresSpace

      public:
      virtual void releasePresSpace()

  Releases the graphics drawing port used for drawing the target emphasis.

Exception

  IInvalidRequest | The presentation space was not released. An invalid presentation space may have been specified or a direct manipulation is not in progress.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

### IDMTargetEvent - Inherited Member Functions and Data

#### Inherited Public Functions

  IDMEvent

  -     virtual ~IDMEvent()

  -     IDMEvent(const IEvent& event)

  IEvent

  -     virtual ~IEvent()

  -     IWindowHandle controlHandle() const

  -     virtual IWindow* controlWindow() const

  -     IEvent& decrementOwnerLevels()

  -     virtual IWindow* dispatchingWindow() const

  -     unsigned long eventId() const

  -     IWindowHandle handle() const

  -     IEvent( IWindow* window,
                unsigned long eventId,
                const IEventParameter1& parameter1,
                const IEventParameter2& parameter2 )

  -     IEvent( const IWindowHandle& handle,
                unsigned long eventId,
                const IEventParameter1& parameter1,
                const IEventParameter2& parameter2 )

  -     IEvent(const IEvent& event)

  -     IEvent& operator =(const IEvent& event)

  -     IEventParameter1 parameter1() const

  -     IEventParameter2 parameter2() const

  -     bool passToOwner() const

  -     IEventResult result() const

  -     IEvent& setControlHandle(const IWindowHandle& handle)

  -     IEvent& setDispatchingHandle(const IWindowHandle& handle)

  -     IEvent& setDispatchingWindow(IWindow* window)

  -     IEvent& setHandle(const IWindowHandle& handle)

  -     IEvent& setNumberOfLevels(int levels = - 1)

  -     IEvent& setPassToOwner(bool passOn = true)

  -     IEvent& setResult(bool eventResult)

  -     IEvent& setResult(const IEventResult& eventResult)

  -     virtual IWindow* window() const

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None