class CMyDialog{... public: void EnableConrols(int nEnable);...};
void CMyDialog::EnableConrols(int nEnable){ ... GetDlgItem(...) -> ... ; ...}
public: void EnableR();
void CdiplomDlg::EnableR(){ GetDlgItem(IDC_RADIO1)->EnableWindow(TRUE); GetDlgItem(IDC_RADIO2)->EnableWindow(TRUE);}
CdiplomDlg dlg;dlg.EnableR();