Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
tarou iiyama
|
Jun 20, 2006 - 12:49 AM
|
Hello
I want to display a multi-line in CExtGrid. ttp://profuis0.tripod.com/20060620/image01.jpg
Will not there be a method besides OnGbwAdjustRects?
Thank You
|
|
Technical Support
|
Jun 20, 2006 - 7:58 AM
|
To make the cell multiline, please use the __EGCS_EX_WRAP_TEXT extended cell style. The number of wrapped lines depends on the column width, row height and text length. pCell->ModifyStyleEx( __EGCS_EX_WRAP_TEXT ); When making the text multiline, do not forget to use the CRLF special symbol, e.g. pCell->TextSet(
_T("Line1\r\nLine2\r\nLine3\r\nLine4\r\nLine5")
); When you are typing in some text in the editor and want to insert a new line, just use the Ctrl+Enter key combination, which is standard for multiline edit controls.
|
|
tarou iiyama
|
Jun 21, 2006 - 12:50 AM
|
|
|