Inheritance diagram for CP_M_DragTarget:
Drag Target | |
virtual void | OnDragEnter (CP_DragDrop &inDragDrop, bool inDragHasLeftSender) |
virtual void | OnDragLeave (CP_DragDrop &inDragDrop) |
virtual void | OnDragTrack (CP_DragDrop &inDragDrop) |
static CP_M_DragTarget * | FindDragTarget (OSWindow inOSWindow, CP_Point &inMouseLocation, CP_DragDrop &inDragDrop) |
Public Member Functions | |
virtual void | HandleDragReceive (CP_DragDrop &) |
void | SetTargetWindow (OSWindow inWindow) |
virtual void | OnDragEnter (LPDATAOBJECT pIDataSource, DWORD grfKeyState, POINTL pt, LPDWORD pdwEffect) |
virtual void | OnDragOver (DWORD grfKeyState, POINTL pt, LPDWORD pdwEffect) |
virtual void | OnDragLeave () |
virtual void | OnDrop (LPDATAOBJECT pIDataSource, DWORD grfKeyState, POINTL pt, LPDWORD pdwEffect) |
CP_Point | GetDropPoint () |
Constructor / Destructor | |
CP_M_DragTarget () | |
Constructor. | |
virtual | ~CP_M_DragTarget () throw () |
Destructor. | |
Protected Member Functions | |
virtual bool | OnCanAcceptDrag (UInt32 inItem, CP_DragDrop &inDragDrop)=0 |
virtual CP_Region | GetDropRegion ()=0 |
virtual bool | PtInDropArea (CP_Point &inGlobalPoint) |
virtual bool | OnCanAcceptDragWin (LPDATAOBJECT pIDataSource, DWORD grfKeyState, POINTL pt, LPDWORD pdwEffect) |
Protected Attributes | |
CP_Window * | fWindow |
bool | fDropAreaIsHilited |
bool | fCanAcceptCurrentDrag |
OSWindow | fTargetWindow |
CDropTarget * | fDropTarget |
CP_Point | fDropPoint |
Static Protected Attributes | |
static CP_DragTarget_List * | fsDragTargetList = NULL |
static CP_M_DragTarget * | fsCurrentDragTarget = NULL |
static bool | fsDragHasLeftSender = false |
|
Constructor.
|
|
Destructor.
|
|
Adds the passed in CP_M_DragTarget to the global list of drag targets that this object maintains. This is the list of objects that get checked during a drag and drop operation to see if the object can receive the dropped object when the mouse if over the target object.
|
|
Removes a previously added CP_M_DragTarget object. This is called for you automatically when aa CP_M_DragTarget object is destroyed. However you can call this at other times, if you want to remove an object as a postential drop target for drag and drops.
|
|
Reimplemented in CP_View_Imp. |
|
Screen location where drop occurred. |
|
Called when the drag enters a new drop area. This is used to show the MacOS default drag hiliting.
|
|
Called when the drag leaves a drop area. This is used to remove the MacOS default drag hiliting.
|
|
Callback to the MacOS Drag Manager that is called during a drag and drop tracking operation.
|
|
Callback to the MacOS Drag Manager when the user has dropped an object over a drag target.
|
|
Finds and returns the CP_M_DragTarget that is in the passed in OSWindow at the passed in mouse location. The mouse location is in global coordinates. If no target was found at the passed in location, then NULL is returned.
|
|
Called when the user has entered a registered drag target object.
|
|
Called when the user is has left the current drag target object.
|
|
Called when the user is tracking or moving the mouse during a drag and drop operationn.
|
|
|
|
Implemented in CP_View_Imp. |
|
Returns true if the passed in global point is over this drag target.
|
|
Called when the user is dragging an object around in a window. This is called from the MacOS Drag Manager callback.
|
|
Register a Windows HWND as a possible target for dropping objects onto.
|
|
Called when we are entering a new drag target. |
|
Called while we are dragging over the target object. |
|
Called when we leave the current target. |
|
Called when the data is dropped onto the target object. Subclasses need to override this method. |
|
|
|
Return true if this object can accept the dropped data. Subclasses need to override. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Windows HWND for the target. |
|
OLE drop target interface object. |