CGXGridCore::DndStartDragDrop
virtual BOOL DndStartDragDrop(ROWCOL nRow, ROWCOL nCol);
nRow
Specifies the row id of the cell where the user has pressed the left button.
nCol
Specifies the column id of the cell where the user has pressed the left button.
Return Value
TRUE if Drag&Drop is supported (even if Drag&Drop operation was aborted); FALSE if Drag&Drop is not supported.
Remarks
Starts the Drag&Drop operation.
If you did not enable the OLE data source functionality by calling EnableOleDataSource,the function will immediately return FALSE.
DndStartDragDrop will call the overridable OnDndCacheGlobalData to supply the data in CF_TEXT and internal style clipboard format. If you want to add support for additional clipboard formats, you should override OnDndCacheGlobalData.
Note
For versions of Visual C++ earlier than 4.0, this method is only an overridable which is called when the user has pressed the mouse button on the edge of a selected range of cells and the m_bHitTestSelEdge attribute is TRUE.
See Also
CGXGridCore::m_bHitTestSelEdge CGXGridCore::EnableOleDataSource CGXGridCore::OnDndCacheGlobalData