<< Return to Main Index

< Return to Class Index

CGXGridCore::UpdateRemoveCols

virtual void UpdateRemoveCols(ROWCOL nFromCol, ROWCOL nToCol, int* anOldWidths = NULL, UINT flags, BOOL bCreateHint = FALSE);?

nFromCol

Specifies the first column id.

nToCol

Specifies the last column id.

anOldWidths

Points to an array with the column-widths before they have been changed with StoreColWidth.

flags

GX_INVALIDATE simply invalidates the window area right of nFromCol.

bCreateHint

Specifies if a hint should be created.

Remarks

Overridable method which updates the window after removing columns.

The method creates the following hint:

   CGXGridHint hint(gxHintUpdateRemoveCols, m_nViewID);
   hint.nCol1 = nFromCol;
   hint.nCol2 = nToCol;
   hint.vptr  = anOldWidths;
   hint.flags = flags;

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

See Also

CGXGridCore::MoveCols CGXGridHint

CGXGridCore

Class Overview | Class Members