index047.htm
来自「介绍了L C ö O S 2Ê 在TM S320VC5402 」· HTM 代码 · 共 26 行
HTM
26 行
<html>
<style type="text/css"><!--
.p9 { font-family: "宋体"; font-size: 9pt}a {text-transform: none; text-decoration: none;}
a:hover {text-decoration: underline; color: #FF0000;}
--></style>
<body background="../di2001.jpg">
<h3 align="center"><font COLOR="#AOAO99"></font></h3>
<table width="100%" border="1" cellspacing="1">
<tr><td><p align="center"><font color="#FF0000">如何向编辑控件中添加文本</font></td></tr>
<tr><td><p>
</Br>
由于没有CEdit:: AppendText函数,用户只好自己做此项工作。调用CEdit:: SetSel移动到编辑控件末尾,然后调用CEdit:: ReplaceSel添加文本。下例是AppendText 的一种实现方法:<Br>
</Br>
void CMyEdit:: AppendText (LPCSTR pText)<Br>
{<Br>
int nLen=GetWindowTextLength ()<Br>
SetFocus ()<Br>
SetSel (nLen, nLen)<Br>
</Br>
ReplaceSel (pText)<Br>
}<Br>
</Br>
</p></td></tr>
</table>
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?