1

Topic: How correctly to work with multiline CEdit?

Component CTdit allows to work not only with the one-line text, but also with the multiline text. How correctly to work with the multiline text in CEdit - how correctly to place in CEdit the multiline text and how correctly to read out from CEdit the multiline text?

2

Re: How correctly to work with multiline CEdit?

Hello, RussianFellow, you wrote: RF> Component CTdit allows to work not only with the one-line text, but also with the multiline text. RF> how correctly to work with the multiline text in CEdit - how correctly to place in CEdit multiline text SetWindowText () It is possible to interpose still the text into a current cursor position through Paste (), but before it it is necessary to thrust this text in a clipboard. RF> and how correctly to read out from CEdit the multiline text? GetLineCount () GetLine () or entirely to receive all text - GetWindowText (), lines are divided "\r\n" For what this generally is used CEdit? If the editor of the text is not necessary, it is possible to deduce a line through CListCtrl

3

Re: How correctly to work with multiline CEdit?

Hello, RussianFellow, you wrote: RF> Component CTdit allows to work not only with the one-line text, but also with the multiline text. RF> how correctly to work with the multiline text in CEdit - how correctly to place in CEdit the multiline text and how correctly to read out from CEdit the multiline text? In vain you with MFC communicated. Better Qt start to dig.

4

Re: How correctly to work with multiline CEdit?

Hello, Evgeniy Skvortsov, you wrote: ES> For what this generally is used CEdit? If the editor of the text is not necessary, it is possible to deduce a line through CListCtrl Yes simply for convenience - for an output  the text I selected CEdit, instead of CListCtrl.

5

Re: How correctly to work with multiline CEdit?

And how program to place a line in multiline CEdit? Whether Only by means of concatenation of these lines in one big line, using separators "\r\n" and function SetWindowText, or it is possible somehow in another way?