CGXStyle::SetAutoSize

CGXStyle& SetAutoSize (BOOL b);

b

TRUE if the edit control should automatically grow when the user enters large text; FALSE otherwise.

Return Value

Returns the this pointer.

Remarks

Initializes the auto size state.

When auto size is enabled, edit cell will automatically grow while the user enters large text. If you have enabled word break, edit cells grow vertically. If you have disabled word break, edit cells grow horizontally. Rich Edit cells only grow vertically regardless whether word break is enabled or disabled.

Cells will not grow when you fill the cells programmatically. For example calling SetValueRange with large text will not grow the cell. Call ResizeRowHeightsToFit to resize rows after you filled the cells with SetValueRange.

See Also

 CGXGridCore::ResizeRowHeightsToFit  CGXGridCore::ResizeColWidthsToFit

CGXStyle

 Class Overview |  Class Members