### IDDEEndEvent

  The IDDEEndEvent class provides event information to a server application when a conversation is ended or ending.

  An object of this class is created when an IDDETopicServer object needs to notify the application that a conversation is ending or ended. You do not construct objects of this class.

### IDDEEndEvent - Member Functions and Data by Group

### Constructors & Destructor

You can construct and destruct objects of this class, although normally you never need to do so. These events are usually created and deleted for you by IDDETopicServer objects.

~IDDEEndEvent

      public:
      ~IDDEEndEvent()

Supported Platforms

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

IDDEEndEvent

      public:
      IDDEEndEvent(const IEvent& ddeEvent, Source endSource)

Supported Platforms

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

### Event Information

Use these members and enumerations to determine the initiator or cause of the conversation termination.

sourceOfEnd

      public:
      Source sourceOfEnd() const

  Returns one of the values of the IDDEEndEvent::Source enumeration indicating the source of the ending of the conversation.

Supported Platforms

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

### IDDEEndEvent - Enumerations

Source

      enum Source { client,
                    server,
                    error }

  The following enumerations are used to define the possible sources of an end to a conversation:

  client
    Indicates that the client initiated the conversation's end.
  server
    Indicates that the server initiated the conversation's end.
  error
    Indicates that an error in a routine entered from the dispatcher would cause an exception to be thrown and the application would not have an opportunity to catch the exception. Because this situation could cause this application and the application being conversed with to abnormally end, this application is called back with an IDDEEndEvent object. The conversation is also terminated at this point.

Supported Platforms

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

### IDDEEndEvent - Inherited Member Functions and Data

#### Inherited Public Functions

  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(const IEventResult& eventResult)

  -     IEvent& setResult(bool eventResult)

  -     virtual IWindow* window() const

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None