?? 向編輯控件中添加文本.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 + -