CGXGridCore::GetClipboardStyleRowCol
virtual BOOL GetClipboardStyleRowCol(ROWCOL nRow, ROWCOL nCol, CGXStyle* pStyle, BOOL bLoadBaseStyles);
nRow
Specifies the row id.
nCol
Specifies the column id.
pStyle
A pointer to the CGXStyle object where the cell information should be stored.
bLoadBaseStyles
TRUE if the style should be composed by loading in a all base styles (by calling ComposeStyleRowCol). FALSE if GetStyleRowCol should be called
Return Value
TRUE if cell data were found; FALSE if cell is empty.
Remarks
This virtual method is called from CopyCellsToArchive to get the style information for a specific cell that should be copied to the clipboard.
Example:
BOOL CGXGridCore::GetClipboardStyleRowCol(ROWCOL nRow, ROWCOL nCol, CGXStyle* pStyle, BOOL bLoadBaseStyles)
{
int nValueType = 0;
if (m_nClipboardFlags&GX_DNDEXPRESSION)
nValueType = m_nExpressionValueType;
// Shall I compose the style with all its base style settings?
if (bLoadBaseStyles)
{
ComposeStyleRowCol(nRow, nCol, pStyle, TRUE);
return TRUE;
}
// or, shall I only copy the cells specific attributes
else
return GetStyleRowCol(nRow, nCol, *pStyle, gxCopy, nValueType);
}
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 ImplementStyleDataExchange 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::CopyCellsToArchive