|
public
QueryDragItem
QueryDragItemCount
QueryDropPos
QuerySourceWindow
SetAcceptMode
SetOperation
XDragEvent
|
Derrived | : public XEvent
|
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
For drag-events in container see:
XContainerDragEvent
XContainerEvent
XContainerHandler
|
|
|
Query a dragitem.
|
Definition | BOOL QueryDragItem ( XDragItem* itm, SHORT index )
|
Parameters | : XDragItem * buffer buffer which will get the item-information
SHORT index zero-based index of item to query
Retuns: -
|
Returns | BOOL
|
|
Return the count of drag-items of this dragevent
|
Definition | SHORT QueryDragItemCount ( void )
|
Parameters | : -
|
Returns | SHORT
SHORT count of items
|
|
Query the position where the objects were dropped
|
Definition | BOOL QueryDropPos ( XPoint* p )
|
Parameters | : XPoint * position buffer which will get the position
Retuns: -
|
Returns | BOOL
|
|
Query the system-define handle of the window where the objects
were dropped.
|
Definition | OOL_WINDOWHANDLE QuerySourceWindow ( void )
|
Parameters | : -
Retunrs: OOL_WINDOWHANDLE The system-defined window handle.
|
Returns | OOL_WINDOWHANDLE
|
|
set the operation supported by the application which receives
the drag-event
|
Definition | void SetAcceptMode ( SHORT mode )
void SetAcceptMode ( SHORT ) |
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
|
Returns | void
-
|
|
set the operation supported by the application which generates
the drag-event
|
Definition | void SetOperation ( SHORT op )
void SetOperation ( SHORT ) |
Parameters | : SHORT operation the opperation, possible values are
DRG_COPY copy the items
DRG_MOVE move the items
DRG_LINK link the items
|
Returns | void
-
|
|
Definition | XDragEvent ( LONG event, void* v )
XDragEvent ( LONG, void* ) |
Returns | - |