-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSearchDlg.h
47 lines (41 loc) · 1.16 KB
/
SearchDlg.h
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
#pragma once
#include "HistoryCombo.h"
// CSearchDlg dialog
class CSearchInterface
{
public:
virtual int DoSearch(CString sCode, int nFlag) = 0;
virtual int DoSearchNext(bool bPre) = 0;
};
class CSearchDlg : public CDialogEx
{
DECLARE_DYNAMIC(CSearchDlg)
public:
CSearchDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CSearchDlg();
virtual BOOL OnInitDialog();
void SetListCtrl(CListCtrl* p){m_pListCtrl = p;}
void DoCreate(CWnd * p, CSearchInterface * p1);
// Dialog Data
//enum { IDD = };
void CancelRealtimeMonitor();
bool GetMonitorInfo(CString & sCode, int & nFlag);
protected:
CHistoryCombo m_histCombo;
int m_ncnt;
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
CListCtrl * m_pListCtrl;
CSearchInterface * m_pSearchImpl;
CString m_sSearchCode;
int m_nSearchFlg;
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedButtonSearch();
afx_msg void OnBnClickedButtonPre();
afx_msg void OnBnClickedButtonNext();
afx_msg void OnEnChangeEditText();
afx_msg void OnBnClickedRadioString();
afx_msg void OnCbnSelchangeEditText();
afx_msg void OnCbnEditchangeEditText();
afx_msg void OnBnClickedCheckRuntimemonitor();
};