The IDMSourceDiscardEvent class represents objects that have been dropped on a shredder object. Objects of this class are constructed by the source handler, IDMSourceHandler.
Objects of this class return an indicator to the shredder object, which identifies what has the responsibility for the deletion of the items or which indicates that the discard operation is to be aborted.
This event is not supported on AIX.
Objects of this class wrapper the DM_DISCARDOBJECT message.
This event is not supported on Windows.
You can construct and destruct objects of this class.
![]() |
public:
virtual ~IDMSourceDiscardEvent()
Windows | OS/2 | AIX |
Ignored | Yes | Ignored |
![]() |
public:
IDMSourceDiscardEvent(const IEvent& event)
Constructs objects of this class from a generic IEvent object.
Windows | OS/2 | AIX |
Ignored | Yes | Ignored |
Use these members to set and query event information for this class.
![]() |
public:
IDMSourceDiscardEvent& setSourceOperation( const IDMSourceOperation::Handle& operation )
Sets the handle of the drag source operation for this event.
Windows | OS/2 | AIX |
Ignored | Yes | Ignored |
![]() |
public:
IDMSourceDiscardEvent& setWhoDiscards( DiscardIndicator indicator )
Sets the discard indicator, which identifies the following:
This is usually accomplished by calling IDMItem::sourceDiscard for the drag item.
The target is usually the shredder object. Let it discard the object only if the object is a file; otherwise, it does not recognize how to discard your application objects.
Windows | OS/2 | AIX |
Ignored | Yes | Ignored |
![]() |
public:
IDMSourceOperation::Handle sourceOperation() const
Returns the handle of the drag source operation for this event.
Windows | OS/2 | AIX |
Ignored | Yes | Ignored |
![]() |
public:
virtual DiscardIndicator whoDiscards() const
Returns the discard indicator identifying what should delete the drag items.
Windows | OS/2 | AIX |
Ignored | Yes | Ignored |
virtual ~IDMEvent()
IDMEvent(const IEvent& event)
virtual ~IEvent()
IWindowHandle controlHandle() const
virtual IWindow* controlWindow() const
IEvent& decrementOwnerLevels()
virtual IWindow* dispatchingWindow() const
unsigned long eventId() const
IWindowHandle handle() const
IEvent(const IEvent& event)
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& 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