Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

You can make a cell multiline by applying the __EGCS_EX_WRAP_TEXT extended style to it:

pCell->ModifyStyleEx( __EGCS_EX_WRAP_TEXT );

The number of wrapped lines depends on the column width, row height and text length.

Here is how to set some multiline text:

pCell->TextSet(
_T("Line1\r\nLine2\r\nLine3\r\nLine4\r\nLine5")
);

The in-place text editor associated with any editable text cell supports multiple text input so when you are typing in some text in it and want to insert a new line, use the Ctrl+Enter key combination, which is standard for multiline edit controls.