123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- // Dlg_ParamFind.cpp : 实现文件
- //
- #include "stdafx.h"
- #include "Dlg_ParamFind.h"
- // CDlg_ParamFind 对话框
- IMPLEMENT_DYNAMIC(CDlg_ParamFind, CDialog)
- CDlg_ParamFind::CDlg_ParamFind(CWnd* pParent /*=NULL*/)
- : CDialog(CDlg_ParamFind::IDD, pParent)
- , m_nComb_FindType(0)
- , m_sEdit_Data(_T(""))
- {
- m_bChk_Dim = true;
- }
- CDlg_ParamFind::~CDlg_ParamFind()
- {
- }
- void CDlg_ParamFind::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- DDX_Control(pDX, IDC_COMBO_FINDTYPE, m_Comb_FindType);
- DDX_CBIndex(pDX, IDC_COMBO_FINDTYPE, m_nComb_FindType);
- DDX_Text(pDX, IDC_EDIT_FINDDATA, m_sEdit_Data);
- DDX_Check(pDX, IDC_CHECK_DIM, (int &)m_bChk_Dim);
- }
- BEGIN_MESSAGE_MAP(CDlg_ParamFind, CDialog)
- ON_BN_CLICKED(IDCANCEL, OnBnClickedCancel)
- ON_BN_CLICKED(IDC_BTN_FIND, OnBnClickedBtnFind)
- END_MESSAGE_MAP()
- // CDlg_ParamFind 消息处理程序
- BOOL CDlg_ParamFind::OnInitDialog()
- {
- CDialog::OnInitDialog();
- // TODO: 在此添加额外的初始化
- m_btnCancel.SubclassDlgItem(IDCANCEL, this);
- m_btnCancel.SetBitmaps(IDB_EXIT, RGB(192, 192, 192));
- m_btnCancel.SetFlat(FALSE);
- m_btnCancel.SetAlign(CButtonST::ST_ALIGN_HORIZ);
- m_btnFind.SubclassDlgItem(IDC_BTN_FIND, this);
- m_btnFind.SetIcon( IDI_ICON_FIND );
- m_btnFind.SetFlat(FALSE);
- m_btnFind.SetAlign(CButtonST::ST_ALIGN_HORIZ);
- ((CButton *)GetDlgItem(IDC_CHECK_DIM))->SetCheck( true );
- return TRUE; // return TRUE unless you set the focus to a control
- // 异常: OCX 属性页应返回 FALSE
- }
- void CDlg_ParamFind::OnBnClickedOk()
- {
- // TODO: 在此添加控件通知处理程序代码
- //OnOK();
- //m_pAnalog->m_ctrlAnalogGrid.OnEditFind();
- }
- void CDlg_ParamFind::OnBnClickedBtnFind()
- {
- UpdateData();
-
- }
- void CDlg_ParamFind::OnBnClickedCancel()
- {
- // TODO: 在此添加控件通知处理程序代码
- OnCancel();
- }
|