<< Return to Main Index

< Return to Class Index

CGXGridCore::OnPasteFromClipboard

virtual BOOL OnPasteFromClipboard(const CGXRange& range);

range

Specifies the selected range of cells in the grid.

Return Value

TRUE if clipboard format is supported; FALSE if clipboard format is not supported or if user aborted the operation.

Remarks

Pastes cells from the clipboard.

CGXGridCore::Paste will call this method after it has opened the clipboard.

The base-class version supports both CF_TEXT and internal format. Override this method if you want to support additional clipboard formats. Be sure to call the base-class version.

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. A warning will be displayed in the debug window.

END Control-Factory Specific

See Also

CGXGridCore::Paste

CGXGridCore

Class Overview | Class Members