Description


Include file: xdragevn.h

Parent class: XEvent
XEvent

Overview

For drag-events a XDragEvent is generated, to catch them you need to install a XDragHandler. Possible event-IDs are:
DRG_DROPPED An item was dropped.
DRG_DRAGOVER An item fly over the window.
DRG_ENDCONVERSATION The converation ends. No informations about dragitems avaible!
DRG_DISCARDOBJECT Delete the items(s).
DRG_PRINTOBJECT Print the item(s). Use QueryPrinterInfo() to get information about the requested printer.

For drag-events in a container see:


Drag/drop events generate a XDragEvent, you catch them with XDragHandler. If drag-events should be cought in a container-control use XContainerDragEvent / XContainerHandler.

Functions

GetDragItem

Parameters

XDragItem * buffer buffer which will get the item-information
SHORT index zero-based index of item to query

Remarks

Query a dragitem.

GetDragItemCount

Return-Value

SHORT count of items

Remarks

Return the count of drag-items of this dragevent

GetDropPos

Parameters

XPoint * position buffer which will get the position

Remarks

Query the position where the objects were dropped

GetSourceWindow

Remarks

Query the system-define handle of the window where the objects were dropped.

SetAcceptMode

Parameters

SHORT accept the opperation, possible values are
DRG_DROP accept the items
DRG_NODROP dont accept the items in this case
DRG_NEVERDROP never accept the items

Remarks

Set the operation supported by the application which receives the drag-event

SetOperation

Parameters

SHORT operation the opperation, possible values are
DRG_COPY copy the items
DRG_MOVE move the items
DRG_LINK link the items

Remarks

Set the operation supported by the application which generates the drag-event


This document was generated by Jens von Pilgrim's Autodoc