checkbox 和radio 关联;
void CLogonDlg::OnCheckEnable()
{// TODO: Add your control notification handler code here
if(m_checkEnable.GetCheck() == 1)
{
((CButton *)GetDlgItem(IDC_RADIO1))->EnableWindow(TRUE);
((CButton *)GetDlgItem(IDC_RADIO2))->EnableWindow(TRUE);
}
else
{
((CButton *)GetDlgItem(IDC_RADIO1))->EnableWindow(FALSE);
((CButton *)GetDlgItem(IDC_RADIO2))->EnableWindow(FALSE);
}
}
CString 字符串连接
CString strHDIdx1;
strHDIdx1.Format("%d", CDiskBase::GetInstance().m_lHDSymbolName[0]);
strHDIdx1 = "磁盘"+strHDIdx1;