CGXGridCore::UpdateRemoveRows

virtual void UpdateRemoveRows(ROWCOL nFromRow, ROWCOL nToRow, int* anOldHeights = NULL, UINT flags, BOOL bCreateHint = FALSE);?

nFromRow

Specifies the first row id.

nToRow

Specifies the last row id.

anOldHeights

Points to an array with the row-heights before they have been changed with StoreRowHeight.

flags

  • Specifies the update technique.

  • GX_UPDATENOW specifies to scroll the window contents and call UpdateWindow after invalidating the window.

  • GX_SMART specifies to scroll the window contents without calling UpdateWindow after the last invalidation.

GX_INVALIDATE simply invalidates the window area below nFromRow.

bCreateHint

Specifies if a hint should be created.

Remarks

Overridable method which updates the window after removing rows.

The method creates the following hint:

   CGXGridHint hint(gxHintUpdateRemoveRows, m_nViewID);
   hint.nRow1 = nFromRow;
   hint.nRow2 = nToRow;
   hint.vptr = anOldHeights;
   hint.flags = flags;

You can override this method if you need to change the hint.

See Also

 CGXGridCore::MoveRows  CGXGridHint

CGXGridCore

 Class Overview |  Class Members