CGXGridCore::Copy

virtual BOOL Copy( );

Return Value

It is TRUE if the command was successfully executed. It is FALSE if the command failed or if the user has aborted the operation.

Remarks

Copies the selected range of cells to the clipboard. The range can be selected by dragging the mouse over cells or programmatically with

      SelectRange(range, TRUE);

If no range has been selected, the current cell control’s CGXControl::Copy method will be called.

Copy will copy the cells both in internal format and CF_TEXT format to the clipboard. The CF_TEXT format is done with CopyTextToFile. The internal format is done with CopyCellsToArchive.

You might override Copy to add support for additional clipboard formats.

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 ImplementCutPaste 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. No action is performed.

END Control-Factory Specific

See Also

 CGXGridCore::CanCopy  CGXGridCore::CopyTextToFile  CGXGridCore::CopyCellsToArchive  CGXControl::Copy

CGXGridCore

 Class Overview |  Class Members