void CListDemoDlg::OnAddbutton()
{
CButton* bt1 = (CButton *)GetDlgItem(IDC_BUTTON1);
bt1->EnableWindow(!(bt1->IsWindowEnabled()));
//bt1->ShowWindow(!(bt1->IsWindowVisible()));
UpdateData(TRUE);
CString str;
str.Format("Radio is %d",m_radio1);
AfxMessageBox(str);
UpdateData(FALSE);
}
很简单吧,示例三个都实现了