CGXGridCore::OnSelDragStart

virtual BOOL OnSelDragStart(ROWCOL nRow, ROWCOL nCol);?

nRow

Specifies the row where the user has pressed the mouse.

nCol

Specifies the column where the user has pressed the mouse.

Return Value

TRUE when dragging-mode has been initialized, FALSE if dragging should be aborted.

Remarks

Overridable method which initializes the dragging-mode.

This method is called when the user has clicked the mouse on a selected row- or column-header.

You can override this method if you want to avoid dragging cells. See CGXGridParam::EnableMoveRows and CGXGridParam::EnableMoveCols if you want to avoid moving rows or columns globally.

If nRow is 0, the user is dragging columns. If nCol is 0, the user is dragging rows.

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::OnSelDragMove  CGXGridCore::OnSelDragDrop  CGXGridParam::EnableMoveRows

CGXGridCore

 Class Overview |  Class Members