标签:
// 追加文本到EditControl
void
InstmDebugMainDlg::AppendText(
int
controlId, CString strAdd)
{
((CEdit*)GetDlgItem(controlId))->SetSel(GetDlgItem(controlId)->GetWindowTextLength(),GetDlgItem(controlId)->GetWindowTextLength());
((CEdit*)GetDlgItem(controlId))->ReplaceSel(strAdd+L
"\n"
);
}
标签:
原文地址:http://www.cnblogs.com/xuandi/p/5123266.html