MFC编辑框控件刷新闪烁怎么处理
1个回答
展开全部
解决方法如下:
CString a;
a = "123";
GetDlgItem(IDC_EDIT_SEDMSG)->SetWindowText("");
::SendMessage(m_dataDlg.GetDlgItem(IDC_RECEIVE_2)->GetSafeHwnd(),EM_SETSEL,-1,0);
::SendMessage(m_dataDlg.GetDlgItem(IDC_RECEIVE_2)->GetSafeHwnd(),EM_REPLACESEL,NULL,a);
提示说 a 要是LPARAM类型
CString a;
a = "123";
GetDlgItem(IDC_EDIT_SEDMSG)->SetWindowText("");
::SendMessage(m_dataDlg.GetDlgItem(IDC_RECEIVE_2)->GetSafeHwnd(),EM_SETSEL,-1,0);
::SendMessage(m_dataDlg.GetDlgItem(IDC_RECEIVE_2)->GetSafeHwnd(),EM_REPLACESEL,NULL,a);
提示说 a 要是LPARAM类型
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询