CGXControl::CalcSize

virtual CSize CalcSize(CDC* pDC, ROWCOL nRow, ROWCOL nCol, const CGXStyle& style, const CGXStyle* pStandardStyle, BOOL bVert);

pDC

Points to the device context.

nRow

Specifies the row id.

nCol

Specifies the column id.

style

A reference to the composed style of the cell.

pStandardStyle

Points to the standard-style of the grid.

bVert

Specifies if the size should be computed for automatic resizing of row-heights (bVert = TRUE) or column-widths (bVert = FALSE).

Return Value

The optimal size for the cell.

Remarks

Calculates the optimal size for the control depending on its data. This method is called when row-heights or column-widths should be automatically resized.

When you want to override this method, you should first check out the existing controls for an example.

See Also

 CGXGridCore::ResizeRowHeightsToFit  CGXGridCore::ResizeColWidthsToFit

CGXControl

 Class Overview |  Class Members