MFC Grid manual

CDropPosition Class Reference

Indicates the location where clipboard content should be dropped. More...

#include <Dapfor/GUI/DropPosition.h>

List of all members.


Public Member Functions

 CDropPosition ()
 Default constructor.
 CDropPosition (const CDropPosition &dropPosition)
 Copy constructor.
 CDropPosition (ContextType dropContext, int dropIndex, bool dropAfter, int dropParentIndex)
 Constructor.
 ~CDropPosition ()
 Destructor.
CDropPositionoperator= (const CDropPosition &position)
Get- methods
ContextType GetDropContext () const
 Gets context type where items should be dropped.
int GetDropIndex () const
 Gets zero-based index in context, where handles are dropped.
bool GetDropAfter () const
 Indicates whether a drop is occurred before or after the specified index.
int GetDropParentIndex () const
 Specifies index of a parent, to which clipboard content should be attached.

Detailed Description

Indicates the location where clipboard content should be dropped.

Version:
1.0.0.0 Initial version

Constructor & Destructor Documentation

CDropPosition ( const CDropPosition dropPosition  ) 

Copy constructor.

Parameters:
[in] dropPosition Value to be copied

CDropPosition ( ContextType  dropContext,
int  dropIndex,
bool  dropAfter,
int  dropParentIndex 
)

Constructor.

Parameters:
[in] dropContext Grid context where items should be dropped
[in] dropIndex Zero-based index in the context, where handles are dropped
[in] dropAfter Indicates whether a drop is occurred before or after the specified index. True - after, otherwise - before.
[in] dropParentIndex Indicates the parent, to which a clipboard content should be attached


Member Function Documentation

ContextType GetDropContext (  )  const

Gets context type where items should be dropped.

Returns:
Context type where the items should be dropped

int GetDropIndex (  )  const

Gets zero-based index in context, where handles are dropped.

Returns:
Zero-based index in the context, where handles are dropped.

bool GetDropAfter (  )  const

Indicates whether a drop is occurred before or after the specified index.

Returns:
Value, indicating whether a drop is occurred. True - after the specified index, otherwise - before one.

int GetDropParentIndex (  )  const

Specifies index of a parent, to which clipboard content should be attached.

Returns:
Indicates the parent index, to which a clipboard content should be attached.

CDropPosition & operator= ( const CDropPosition position  ) 

Parameters:
[in] position Value to be copied
Returns:
Reference to 'this'