-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathSearchDlg.cpp
58 lines (44 loc) · 1.11 KB
/
SearchDlg.cpp
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
// SearchDlg.cpp : 實作檔
//
#include "stdafx.h"
#include "HookRepairer.h"
#include "SearchDlg.h"
#include "afxdialogex.h"
// CSearchDlg 對話方塊
IMPLEMENT_DYNAMIC(CSearchDlg, CDialog)
CSearchDlg::CSearchDlg(CWnd* pParent /*=NULL*/)
: CDialog(IDD_DLGFIND, pParent)
{
m_isResume = false;
}
CSearchDlg::~CSearchDlg()
{
}
void CSearchDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
DDX_Control(pDX, IDC_FIND_SEARCH, m_ProcName);
}
BEGIN_MESSAGE_MAP(CSearchDlg, CDialog)
//ON_BN_CLICKED(IDC_FIND_NEXT, &CSearchDlg::OnBnClickedFindNext)
ON_BN_CLICKED(IDOK, &CSearchDlg::OnBnClickedOk)
ON_BN_CLICKED(IDC_SEARCH_RESUME, &CSearchDlg::OnBnClickedSearchResume)
END_MESSAGE_MAP()
// CSearchDlg 訊息處理常式
/*void CSearchDlg::OnBnClickedFindNext()
{
// m_tab2->findProcByName();
}*/
void CSearchDlg::OnBnClickedOk()
{
// TODO: 在此加入控制項告知處理常式程式碼
m_isResume = false;
m_ProcName.GetWindowTextA(m_strKeyword);
CDialog::OnOK();
}
void CSearchDlg::OnBnClickedSearchResume()
{
m_strKeyword = "";
m_isResume = true;
CDialog::OnOK();
}