Facebook
From zadymiarz 123@123, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 176
  1. GÓRA
  2.  CString str = pDoc->strData1;
  3.  int i = 0;
  4.  CStringArray items;
  5.  for (CString sItem = str.Tokenize(_T("\n"), i); i >= 0; sItem = str.Tokenize(_T("\n"), i)) {
  6.   items.Add(sItem);
  7.  }
  8.  
  9.  for (int i = 0; i < items.GetSize(); i++) {
  10.   pDC->TextOutW(30, 30 + (i * 15), items.GetAt(i));
  11.  }
  12.  
  13. DÓŁ
  14.  
  15.  CMDIDoc* pDoc = GetDocument();
  16.  
  17.  if (nChar == 13) {
  18.   pDoc->strData1 += "\n";
  19.  }
  20.  else if (nChar == '\b') pDoc->strData1.Delete(pDoc->strData1.GetLength() - 1);
  21.  else pDoc->strData1 += (char)nChar;
  22.  
  23.  Invalidate();
  24.  
  25.  pDoc->SetModifiedFlag();