Repository navigation
Expand file tree
/
Copy pathReportSeek.cpp
More file actions
68 lines (52 loc) · 1.53 KB
/
Copy pathReportSeek.cpp
File metadata and controls
68 lines (52 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// ReportSeek.cpp : 实现文件
//
#include "stdafx.h"
#include "MedicSystem.h"
#include "ReportSeek.h"
#include "Globol.h"
// CReportSeek 对话框
IMPLEMENT_DYNAMIC(CReportSeekDlg, CDialog)
CReportSeekDlg::CReportSeekDlg(CWnd* pParent /*=NULL*/)
: CDialog(CReportSeekDlg::IDD, pParent)
{
}
CReportSeekDlg::~CReportSeekDlg()
{
}
void CReportSeekDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//DDX_Text(pDX,IDC_EDIT_FILTER,m_strFilter);
DDX_Control(pDX,IDC_EDIT_FILTER,m_wndFilterEditCtrl);
}
BEGIN_MESSAGE_MAP(CReportSeekDlg, CDialog)
END_MESSAGE_MAP()
// CReportSeek 消息处理程序
//void CReportSeekDlg::OnOK()
//{
// // TODO: 在此添加专用代码和/或调用基类
// UpdateData(TRUE);
// CMainFrame *pMainFrm = (CMainFrame *)AfxGetMainWnd();
// pMainFrm->m_wndReportCtrl->SetFilterText(m_strFilter);
// pMainFrm->m_wndReportCtrl->Populate();
// pMainFrm->m_wndReportCtrl->SetFilterText("");
// //CDialog::OnOK();
//}
void CReportSeekDlg::OnCancel()
{
// TODO: 在此添加专用代码和/或调用基类
CWnd::DestroyWindow();
CMainFrame *pMainFrm = (CMainFrame *)AfxGetMainWnd();
pMainFrm->m_wndReportCtrl->SetFilterText("");
pMainFrm->pSeek = NULL;
}
BOOL CReportSeekDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: 在此添加额外的初始化
CMainFrame *pMainFrm = (CMainFrame *)AfxGetMainWnd();
CXTPReportControl *pReportCtrl = pMainFrm->m_wndReportCtrl;
pReportCtrl->GetReportHeader()->SetFilterEditCtrl(&m_wndFilterEditCtrl);
return TRUE; // return TRUE unless you set the focus to a control
// 异常: OCX 属性页应返回 FALSE
}