MFC Grid manual

CPasteTarget Class Reference

Indicates the location in the grid where a clipboard content should be inserted. More...

#include <Dapfor/GUI/PasteTarget.h>

List of all members.


Public Member Functions

 CPasteTarget (CGrid &grid, HITEM pasteParent, HITEM pastePosition)
 Constructor.
 ~CPasteTarget ()
 Destructor.
CGridGetGrid () const
 Gets the grid where data is pasted.
HITEM GetPasteParent () const
 Gets the parent handle that content is attached to.
HITEM GetPastePosition () const
 Gets the position in a parent handle where content is pasted.

Detailed Description

Indicates the location in the grid where a clipboard content should be inserted.

Version:
1.0.0.0 Initial version

Constructor & Destructor Documentation

CPasteTarget ( CGrid grid,
HITEM  pasteParent,
HITEM  pastePosition 
)

Constructor.

Parameters:
[in] grid CGrid object where data is pasted
[in] pasteParent Parent handle, a content is attached to. The value can be GI_SCROLLABLE_ROOT, GI_FIXED_ROOT or an existing handle.
[in] pastePosition Handle to a child item of the specified parent, after which data is inserted. The value can be GI_FIRST, GI_LAST or any child of the specified parent


Member Function Documentation

CGrid & GetGrid (  )  const

Gets the grid where data is pasted.

Returns:
Reference to CGrid object

HITEM GetPasteParent (  )  const

Gets the parent handle that content is attached to.

Returns:
Handle to the parent item where data is attached.

HITEM GetPastePosition (  )  const

Gets the position in a parent handle where content is pasted.

Returns:
Handle to a child item of the specified parent, after which data is inserted.