MFC Grid manual

CDropTarget Class Reference

Contains the grid, position, and clipboard content to perform a drop operation. More...

#include <Dapfor/GUI/DropTarget.h>

List of all members.


Public Member Functions

 CDropTarget (CGrid &grid, const CDropPosition &dropPosition, COleDropTarget &dropTarget, COleDataObject *data, DWORD dwKeyState, CPoint point)
 Constructor.
CGridGetGrid () const
 Gets the grid where data should be dropped.
const CDropPositionGetDropPosition () const
 Gets a drop position inside of the grid.
COleDropTarget & GetDropTarget () const
 MFC object that provides communication mechanism between the window and OLE libraries.
COleDataObject * GetData () const
 Gets a clipboard content.
DWORD GetdwKeyState () const
 Contains the state of the modifier keys.
CPoint GetPoint () const
 Gets the current location of the cursor in the client's coordinates.

Detailed Description

Contains the grid, position, and clipboard content to perform a drop operation.

Version:
1.0.0.0 Initial version

Constructor & Destructor Documentation

CDropTarget ( CGrid grid,
const CDropPosition dropPosition,
COleDropTarget &  dropTarget,
COleDataObject *  data,
DWORD  dwKeyState,
CPoint  point 
)

Constructor.

Parameters:
[in] grid Reference to the grid
[in] dropPosition Indicates the location in CGrid where the data should be dropped
[in] dropTarget MFC object that provides communication mechanism between the window and OLE libraries
[in] data A clipboard content
[in] dwKeyState Contains the state of the modifier keys. This is a combination of any number of the following: MK_CONTROL, MK_SHIFT, MK_ALT, MK_LBUTTON, MK_MBUTTON, and MK_RBUTTON.
[in] point The current location of the cursor in the client's coordinates


Member Function Documentation

CGrid & GetGrid (  )  const

Gets the grid where data should be dropped.

Returns:
reference to the grid

const CDropPosition & GetDropPosition (  )  const

Gets a drop position inside of the grid.

Returns:
A drop position inside of the grid

COleDropTarget & GetDropTarget (  )  const

MFC object that provides communication mechanism between the window and OLE libraries.

Returns:
A reference to COleDropTarget object

COleDataObject * GetData (  )  const

Gets a clipboard content.

Returns:
A pointer to COleDataObject object which presents a clipboard content

DWORD GetdwKeyState (  )  const

Contains the state of the modifier keys.

Returns:
The state of the modifier keys. This is a combination of any number of the following: MK_CONTROL, MK_SHIFT, MK_ALT, MK_LBUTTON, MK_MBUTTON, and MK_RBUTTON.

CPoint GetPoint (  )  const

Gets the current location of the cursor in the client's coordinates.

Returns:
The current location of the cursor in the client's coordinates.