| 1539 | } |
| 1540 | |
| 1541 | CDuiString CRichEditUI::GetLine(int nIndex, int nMaxLength) const |
| 1542 | { |
| 1543 | LPWSTR lpText = NULL; |
| 1544 | lpText = new WCHAR[nMaxLength + 1]; |
| 1545 | ::ZeroMemory(lpText, (nMaxLength + 1) * sizeof(WCHAR)); |
| 1546 | *(LPWORD)lpText = (WORD)nMaxLength; |
| 1547 | TxSendMessage(EM_GETLINE, nIndex, (LPARAM)lpText, 0); |
| 1548 | CDuiString sText; |
| 1549 | sText = (LPCWSTR)lpText; |
| 1550 | delete[] lpText; |
| 1551 | return sText; |
| 1552 | } |
| 1553 | |
| 1554 | int CRichEditUI::LineIndex(int nLine) const |
| 1555 | { |
nothing calls this directly
no outgoing calls
no test coverage detected