MCPcopy Create free account
hub / github.com/cinience/RedisStudio / GetLine

Method GetLine

DuiLib/Control/UIRichEdit.cpp:1541–1552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1539}
1540
1541CDuiString 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
1554int CRichEditUI::LineIndex(int nLine) const
1555{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected