CGXGridCore::OnSelDragDrop

virtual BOOL OnSelDragDrop(ROWCOL nStartRow, ROWCOL nStartCol, ROWCOL nDragRow, ROWCOL nDragCol);?

nStartRow

Specifies the source row.

nStartCol

Specifies the source column.

nDragRow

Specifies the destination row.

nDragCol

Specifies the destination column.

Return Value

TRUE if cells have been moved; FALSE if moving the cells failed.

Remarks

Overridable method which resets the dragging-mode and either calls MoveRows or MoveCols to execute the user interaction.

This method is called when the user has released the mouse button.

You might check m_nSelDragMode to determine whether the user is dragging columns. If m_nSelDragMode is GX_SELDRAG_ROW,the user is dragging rows. Otherwise he is dragging columns (m_nSelDragMode is GX_SELDRAG_COL).

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 ImplementUserDragSelectRange 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::OnSelDragStart  CGXGridCore::OnSelDragMove  CGXGridCore::MoveCols  CGXGridCore::MoveRows

CGXGridCore

 Class Overview |  Class Members