我查MSDN也查到了,请看看下面的用法是否正确 void CMemoryManagementDlg::OnChangeEdtPagemem() { // TODO: If this is a RICHEDIT control, the control will not // send this notification unless you override the CDialog::OnInitDialog() // function and call CRichEditCtrl().SetEventMask() // with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here m_strStaMem.Format("%d", m_nEdtPageMem); //静态框是CString类型的,编辑框是int型的,静态框里的内容不能随着编辑框的改变而改变 }
void CMemoryManagementDlg::OnChangeEdtPagemem() { // TODO: If this is a RICHEDIT control, the control will not // send this notification unless you override the CDialog::OnInitDialog() // function and call CRichEditCtrl().SetEventMask() // with the ENM_CHANGE flag ORed into the mask. // TODO: Add your control notification handler code here UpdateData(true); m_strStaMem.Format("%d", m_nEdtPageMem); //静态框是CString类型的,编辑框是int型的,静态框里的内容不能随着编辑框的改变而改变 UpdateData(fasle); }
void CMemoryManagementDlg::OnChangeEdtPagemem()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
m_strStaMem.Format("%d", m_nEdtPageMem); //静态框是CString类型的,编辑框是int型的,静态框里的内容不能随着编辑框的改变而改变
}
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask. // TODO: Add your control notification handler code here
UpdateData(true);
m_strStaMem.Format("%d", m_nEdtPageMem); //静态框是CString类型的,编辑框是int型的,静态框里的内容不能随着编辑框的改变而改变
UpdateData(fasle);
}