<< Return to Main Index

< Return to Class Index

CGXGridCore::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 the formula engine.

bCreateUndoInfo

TRUE if undo information should be created in the formula engine.

ctCmd

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

Return Value

TRUE if the operation was succesful; FALSE otherwise

Remarks

Called from the MoveCells command to move cells from source to dest. Cell references in formula expressions that depend on cells in the moved range will be adjusted. See CGXFormulaSheet for effects on moving cells when using the formula engine.

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 ImplementDirectCopyMoveCells method from within the control factory class' InitializeGridComponents 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

CGXFormulaSheet::StoreMoveCells

CGXGridCore

Class Overview | Class Members