CGXGridCore::OnMoveTracking

virtual void OnMoveTracking(ROWCOL nRow, ROWCOL nCol, int nTrackingMode, CSize& size);?

nRow

Specifies the row id.

nCol

Specifies the column id.

nTrackingMode

Specifies the tracking-mode. The mode can be either GX_TRACKWIDTH when the user is dragging column-widths and GX_TRACKHEIGHT when the user is tracking row-heights.

size

Specifies the new row-height (size.cy) or column-width (size.cx).

Remarks

Overridable method which displays the new row-height or column-width.

This method is called when the user has moved the mouse.

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

END Control-Factory Specific

Example

This example traces the current column-width when the user is tracking the width of a column.

void CSampleView::OnMoveTracking(ROWCOL nRow, ROWCOL nCol,    int nTrackingMode, CSize &size)
{
   CGXString sMessage;
      if (nTrackingMode == GX_TRACKWIDTH)
      TRACE1("Neue Spaltenbreite: %d Pixel\n", size.cx);
   else
      TRACE1("Neue Zeilenhöhe: %d Pixel\n", size.cy);
      // call base class
   CGXGridView::OnMoveTracking(nRow, nCol,
      nTrackingMode, size);
}

See Also

 CGXGridCore::OnStartTracking  CGXGridCore::OnEndTracking

CGXGridCore

 Class Overview |  Class Members