<< Return to Main Index

< Return to Class Index

CGXGridCore::CalcSumOfClientColWidths

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

nFromCol

Specifies the first relative column index.

nToCol

Specifies the last relative column index.

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.

For example, relative column index 1 refers to the first scrollable column to the right of the frozen column(s).

See Also

CGXGridCore::CalcSumOfColWidths

CGXGridCore

Class Overview | Class Members