DlgSetCmn.cpp
资源名称:ROA3.40.rar [点击查看]
上传用户:tianheyiqi
上传日期:2010-04-16
资源大小:282k
文件大小:4k
源码类别:
外挂编程
开发平台:
Visual C++
- // DlgSetCmn.cpp : implementation file
- //
- #include "stdafx.h"
- #include "roa.h"
- #include "DlgSetCmn.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDlgSetCmn dialog
- CDlgSetCmn::CDlgSetCmn() : CPropertyPage(CDlgSetCmn::IDD)
- {
- //{{AFX_DATA_INIT(CDlgSetCmn)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- CDlgSetCmn::~CDlgSetCmn()
- {
- }
- void CDlgSetCmn::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CDlgSetCmn)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- DDX_Check(pDX, IDC_CHK_CMN_HP, m_settingcmn.autoheal.bHP);
- DDX_Text(pDX, IDC_EDT_CMN_HP1L, m_settingcmn.autoheal.nHP1Lower);
- DDX_Text(pDX, IDC_EDT_CMN_HP1H, m_settingcmn.autoheal.nHP1Upper);
- DDX_CBString(pDX, IDC_CMB_CMN_HPITEM, m_settingcmn.autoheal.strHP1Item);
- DDX_Text(pDX, IDC_EDT_CMN_HP2L, m_settingcmn.autoheal.nHP2Lower);
- DDX_Text(pDX, IDC_EDT_CMN_HP2H, m_settingcmn.autoheal.nHP2Upper);
- GetDlgItem(IDC_EDT_CMN_HP1L)->EnableWindow(m_settingcmn.autoheal.bHP);
- GetDlgItem(IDC_EDT_CMN_HP1H)->EnableWindow(m_settingcmn.autoheal.bHP);
- GetDlgItem(IDC_CMB_CMN_HPITEM)->EnableWindow(m_settingcmn.autoheal.bHP);
- GetDlgItem(IDC_EDT_CMN_HP2L)->EnableWindow(m_settingcmn.autoheal.bHP);
- GetDlgItem(IDC_EDT_CMN_HP2H)->EnableWindow(m_settingcmn.autoheal.bHP);
- DDX_Check(pDX, IDC_CHK_CMN_SP, m_settingcmn.autoheal.bSP);
- DDX_Text(pDX, IDC_EDT_CMN_SPH, m_settingcmn.autoheal.nSPUpper);
- DDX_CBString(pDX, IDC_CMB_CMN_SPITEM, m_settingcmn.autoheal.strSPItem);
- GetDlgItem(IDC_EDT_CMN_SPH)->EnableWindow(m_settingcmn.autoheal.bSP);
- GetDlgItem(IDC_CMB_CMN_SPITEM)->EnableWindow(m_settingcmn.autoheal.bSP);
- DDX_Check(pDX, IDC_CHK_CMN_HPTELE, m_settingcmn.autoheal.bHPTele);
- DDX_Text(pDX, IDC_EDT_CMN_HPTL, m_settingcmn.autoheal.nHPTeleUpper);
- GetDlgItem(IDC_EDT_CMN_HPTL)->EnableWindow(m_settingcmn.autoheal.bHPTele);
- DDX_CBString(pDX, IDC_CMB_CMN_SAVEPOINT, m_settingcmn.strSavePoint);
- }
- BEGIN_MESSAGE_MAP(CDlgSetCmn, CPropertyPage)
- //{{AFX_MSG_MAP(CDlgSetCmn)
- ON_BN_CLICKED(IDC_CHK_CMN_HP, OnChkCmnHp)
- ON_BN_CLICKED(IDC_CHK_CMN_SP, OnChkCmnSp)
- ON_BN_CLICKED(IDC_CHK_CMN_HPTELE, OnChkCmnHptele)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CDlgSetCmn message handlers
- BOOL CDlgSetCmn::OnInitDialog()
- {
- CPropertyPage::OnInitDialog();
- CComboBox *pCombo;
- pCombo = (CComboBox*)GetDlgItem(IDC_CMB_CMN_HPITEM);
- utlAddComboHPItem(pCombo);
- pCombo = (CComboBox*)GetDlgItem(IDC_CMB_CMN_SPITEM);
- utlAddComboSPItem(pCombo);
- // TODO: Add extra initialization here
- UpdateData(false);
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void CDlgSetCmn::OnChkCmnHp()
- {
- // TODO: Add your control notification handler code here
- UpdateData(true);
- }
- void CDlgSetCmn::OnChkCmnSp()
- {
- // TODO: Add your control notification handler code here
- UpdateData(true);
- }
- void CDlgSetCmn::OnOK()
- {
- // TODO: Add your specialized code here and/or call the base class
- UpdateData(true);
- CPropertyPage::OnOK();
- }
- void CDlgSetCmn::OnChkCmnHptele()
- {
- // TODO: Add your control notification handler code here
- UpdateData(true);
- }
- /*
- void CDlgSetCmn::OnBtnShortkey()
- {
- // TODO: Add your control notification handler code here
- CDlgShortkey dlgKey;
- bIsModal = true;
- dlgKey.DoModal();
- bIsModal = false;
- }
- */