void CKerRulePage::OnKeradd() // add a rule { if(InitAddRule() != 0) return; // apply buttion GetOwner()->GetOwner()->GetDlgItem(IDC_APPLY)->EnableWindow(TRUE); }
void CKerRulePage::OnKeradd() // 添加一个规则 { if(InitAddRule() != 0) return; // 有效主对话框的应用按钮 GetOwner()->GetOwner()->GetDlgItem(IDC_APPLY)->EnableWindow(TRUE); }