Dlg_ParamFind.cpp 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // Dlg_ParamFind.cpp : 实现文件
  2. //
  3. #include "stdafx.h"
  4. #include "Dlg_ParamFind.h"
  5. // CDlg_ParamFind 对话框
  6. IMPLEMENT_DYNAMIC(CDlg_ParamFind, CDialog)
  7. CDlg_ParamFind::CDlg_ParamFind(CWnd* pParent /*=NULL*/)
  8. : CDialog(CDlg_ParamFind::IDD, pParent)
  9. , m_nComb_FindType(0)
  10. , m_sEdit_Data(_T(""))
  11. {
  12. m_bChk_Dim = true;
  13. }
  14. CDlg_ParamFind::~CDlg_ParamFind()
  15. {
  16. }
  17. void CDlg_ParamFind::DoDataExchange(CDataExchange* pDX)
  18. {
  19. CDialog::DoDataExchange(pDX);
  20. DDX_Control(pDX, IDC_COMBO_FINDTYPE, m_Comb_FindType);
  21. DDX_CBIndex(pDX, IDC_COMBO_FINDTYPE, m_nComb_FindType);
  22. DDX_Text(pDX, IDC_EDIT_FINDDATA, m_sEdit_Data);
  23. DDX_Check(pDX, IDC_CHECK_DIM, (int &)m_bChk_Dim);
  24. }
  25. BEGIN_MESSAGE_MAP(CDlg_ParamFind, CDialog)
  26. ON_BN_CLICKED(IDCANCEL, OnBnClickedCancel)
  27. ON_BN_CLICKED(IDC_BTN_FIND, OnBnClickedBtnFind)
  28. END_MESSAGE_MAP()
  29. // CDlg_ParamFind 消息处理程序
  30. BOOL CDlg_ParamFind::OnInitDialog()
  31. {
  32. CDialog::OnInitDialog();
  33. // TODO: 在此添加额外的初始化
  34. m_btnCancel.SubclassDlgItem(IDCANCEL, this);
  35. m_btnCancel.SetBitmaps(IDB_EXIT, RGB(192, 192, 192));
  36. m_btnCancel.SetFlat(FALSE);
  37. m_btnCancel.SetAlign(CButtonST::ST_ALIGN_HORIZ);
  38. m_btnFind.SubclassDlgItem(IDC_BTN_FIND, this);
  39. m_btnFind.SetIcon( IDI_ICON_FIND );
  40. m_btnFind.SetFlat(FALSE);
  41. m_btnFind.SetAlign(CButtonST::ST_ALIGN_HORIZ);
  42. ((CButton *)GetDlgItem(IDC_CHECK_DIM))->SetCheck( true );
  43. return TRUE; // return TRUE unless you set the focus to a control
  44. // 异常: OCX 属性页应返回 FALSE
  45. }
  46. void CDlg_ParamFind::OnBnClickedOk()
  47. {
  48. // TODO: 在此添加控件通知处理程序代码
  49. //OnOK();
  50. //m_pAnalog->m_ctrlAnalogGrid.OnEditFind();
  51. }
  52. void CDlg_ParamFind::OnBnClickedBtnFind()
  53. {
  54. UpdateData();
  55. }
  56. void CDlg_ParamFind::OnBnClickedCancel()
  57. {
  58. // TODO: 在此添加控件通知处理程序代码
  59. OnCancel();
  60. }