Is there an easier way to do this?
void CheckboxsDlg::DoDataExchange(CDataExchange* pDX){
CDialogEx::DoDataExchange(pDX);
DDX_Control(pDX, IDC_CHECK1, m_Checkbox1);
DDX_Control(pDX, IDC_CHECK2, m_Checkbox2);
DDX_Control(pDX, IDC_CHECK3, m_Checkbox3);
DDX_Control(pDX, IDC_CHECK4, m_Checkbox4);
DDX_Control(pDX, IDC_CHECK5, m_Checkbox5);
DDX_Control(pDX, IDC_CHECK6, m_Checkbox6);
DDX_Control(pDX, IDC_CHECK7, m_Checkbox7);
DDX_Control(pDX, IDC_CHECK8, m_Checkbox8);
DDX_Control(pDX, IDC_CHECK9, m_Checkbox9);
}
... (with more checkboxes to be added). Can this process be looped in some fashion to create 100 more? I'm using visual studios 2015 as my ide. Thanks.
Aucun commentaire:
Enregistrer un commentaire