SDI application
-
hallo, i have SDI application, which is divided in two parts by CSplitterWnd object, i use CEditView instead of CView, when i type a text in the upper part and click on a button this text appears in the lower part, when i add a new text in the upper part and click the same button, the new text override the old text output(i use SetWindowTexW() and it overrides everytime the old output text) which i need is to keep the old text and the new one. i add the text everytime in an array and when trying to print out its content the above problem happens. any idea / help to fix this problem will be appriciated.
-
hallo, i have SDI application, which is divided in two parts by CSplitterWnd object, i use CEditView instead of CView, when i type a text in the upper part and click on a button this text appears in the lower part, when i add a new text in the upper part and click the same button, the new text override the old text output(i use SetWindowTexW() and it overrides everytime the old output text) which i need is to keep the old text and the new one. i add the text everytime in an array and when trying to print out its content the above problem happens. any idea / help to fix this problem will be appriciated.
-
use some logic like this. CString csText; GetWindowText(csText); SetWidnowText( csText+csNewString);
akt
-
thanks but i need a break line between csText and csNewString i used "/n" but it did not work??
susanne1 wrote:
i used "/n" but it did not work??
You should have used
"\r\n"
instead."Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons