Do the following for check box # 1 or check box # 2.
void CMyDlg::Onchk1()
{
CButton *pButton=(CButton*)GetDlgItem(IDC_CHK1);
int nState=pButton->GetCheck();
if(nState==1)
{
UpdateData(TRUE);
CEditDlg *dlg;
dlg->SetDlgItemText(IDC_EDT,"Checkbox1 Selected");
}
}