正在加载图片...
例题(4) 7.1 4.为对话框 IDD DIALOG DELETE添加响应函数 BOOL CDlgDelete: OnInitDialogo CDialog: OnlnitDialogo // TODO: Add extra initialization here ((CButton*)GetDlgItem(IDC RADIO_ ALL)->Set check(1) GetDlgltem(IDC EDIT INDEX)->EnableWindow(false) return TRUE; /return TRUE unless you set the focus to a control //EXCEPTION: OCX Property Pages should return FALSE void CDlgDelete: OnRadioElemento //TODO: Add your control notification handler code here GetDlgltem(IDC EDIT INDEX)->Enable Window(true)例题(4) 7.1 BOOL CDlgDelete::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here ((CButton*)GetDlgItem(IDC_RADIO_ALL))->SetCheck(1); GetDlgItem(IDC_EDIT_INDEX)->EnableWindow(false); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void CDlgDelete::OnRadioElement() { // TODO: Add your control notification handler code here GetDlgItem(IDC_EDIT_INDEX)->EnableWindow(true); } 4.为对话框IDD_DIALOG_DELETE添加响应函数
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有