<< Return to Main Index

< Return to Class Index

CGXData::StoreMoveCells

virtual BOOL StoreMoveCells(CGXRange rg, ROWCOL nRow, ROWCOL nCol, CObject*& pUndoInfo, BOOL bCreateUndoInfo, int ctCmd);

rg

Specifies the source range of cells.

nRow

Specifies the destination row coordinates.

nCol

Specifies the destination column coordinate

pUndoInfo

A refernence to a pointer that will receive undo information generated by a previous StoreMoveCells command.

bCreateUndoInfo

TRUE if undo information should be created.

ctCmd

Contains the ctCmd setting of the calling method (see CGXGridCore::MoveCells).

Return Value

TRUE if the operation was succesfull ; FALSE otherwise

Remarks

Moves cells from source to dest, e.g. when the user performs a cut/paste operation. Cell references in formula expressions that depend on cells in the moved range will be adjusted.

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the CGXData::ImplementCopyMoveCells method from within the control factory class' InitializeApplicationComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method returns FALSE. A warning will be displayed in the debug window.

END Control-Factory Specific

See Also

CGXGridCore::MoveCells CGXGridCore::m_nClipboardFlags

CGXData

Class Overview | Class Members