正在加载图片...
例题(3) 7.1 3.为对话框 IDD DIALOG ADD添加响应函数 BOOL CDIgAdd: OnI Dialogo CDialog: OnlnitDialogo M/ TODO: Add extra initialization here ((CButton")GetDIgltem(IDC RADIO SED)->Setcheck(1) return TRUE; / return TRUE unless you set the focus to a control l EXCEPTION: OCX Property Pages should return FALSE void CDIgAdd On Radio Seto //TODO: Add your control notification handler code here GetDIgltem(IDC EDIT INDEX)->EnableWindow(true);例题(3) 7.1 3.为对话框IDD_DIALOG_ADD添加响应函数 BOOL CDlgAdd::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here ((CButton*)GetDlgItem(IDC_RADIO_SET))->SetCheck(1); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void CDlgAdd::OnRadioSet() { // TODO: Add your control notification handler code here GetDlgItem(IDC_EDIT_INDEX)->EnableWindow(true); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有