void CDiaaDlg::OnShowButton()
{
// TODO: Add your control notification handler code here
m_Edit1.SetSel(0,-1); //选上所有内容
m_Edit1.ReplaceSel("落款时想起你"); //显示编辑框1内容
}
void CDiaaDlg::OnClearButton()
{
// TODO: Add your control notification handler code here
m_Edit1.SetSel(0,-1); //选上所有内容
m_Edit1.ReplaceSel(""); //清空编辑框1内容
}
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27660822/viewspace-775389/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/27660822/viewspace-775389/