2. add testlistboxdlg:: dodataexchange (CDATA exchange * pdx) function in Void.
DDX_Text(pDX,IDC_EDIT 1,m _ nEdit); The second parameter is the ID of the edit box.
3. Right-click the edit box and add the EN_CHANGE message response method.
4. Add the following code to this method:
void CTESTLISTBOXDlg::onenchangeedit 1()
{
update data(TRUE);
if(m _ nEdit & gt; 100)
{
m _ nEdit = 0;
update data(FALSE);
}
}