⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 向编辑控件中添加文本.txt

📁 vc使用技巧汇集
💻 TXT
字号:
如何向编辑控件中添加文本 
 
由于没有CEdit:: AppendText函数,用户只好自己做此项工作。调用CEdit:: 
SetSel移动到编辑控件末尾,然后调用CEdit:: ReplaceSel添加文本。下例是
AppendText 的一种实现方法: 
 
void CMyEdit:: AppendText (LPCSTR pText) 
{ 
     int nLen=GetWindowTextLength (); 
     SetFocus (); 
     SetSel (nLen, nLen); 
 
     ReplaceSel (pText); 
} 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -