<< Return to Main Index

< Return to Class Index

CGXGridCore::CalcSumOfColWidths

int CalcSumOfColWidths(ROWCOL nFromCol, ROWCOL nToCol, int nAbortAt = 0);

nFromCol

Specifies the first column id.

nToCol

Specifies the last column id.

nAbortAt

Specifies the maximum value for the sum. If it is 0, there is no restriction.

Return Value

The total width of the given columns.

Remarks

Computes the total width of the given columns. If the total width exceeds nAbortAt, the method will abort and return this value greater than nAbortAt.

See Also

CGXGridCore::CalcSumOfClientColWidths

CGXGridCore

Class Overview | Class Members