-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathObFindDlg.h
113 lines (88 loc) · 3.36 KB
/
ObFindDlg.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*===========================================================================
*
* File: Obfinddlg.H
* Author: Dave Humphrey ([email protected])
* Created On: October 1, 2006
*
* Description
*
*=========================================================================*/
#ifndef __OBFINDDLG_H
#define __OBFINDDLG_H
/*===========================================================================
*
* Begin Required Includes
*
*=========================================================================*/
#include "dialogs/obrecorddialog.h"
#include "windows/obrecordvirtuallistctrl.h"
/*===========================================================================
* End of Required Includes
*=========================================================================*/
/*===========================================================================
*
* Begin Class CObFindDlg Definition
*
*=========================================================================*/
class CObFindDlg : public CObRecordDialog {
DECLARE_DYNCREATE(CObFindDlg);
/*---------- Begin Protected Class Members -------------------------*/
protected:
CString m_TextData;
byte* m_pBinaryData;
dword m_BinarySize;
obfinddata_t m_FindData;
CObCallback m_Callback;
/*---------- Begin Public Class Methods ----------------------------*/
public:
/* Constructor */
CObFindDlg(CWnd* pParent = NULL);
virtual ~CObFindDlg();
/* Set and get control data */
virtual void ClearControlData (void);
virtual void GetControlData (void);
virtual void SetControlData (void);
virtual void SetTitle (const SSCHAR* pEditorID);
/* Check if the dialog is editing the given record */
virtual bool IsEditRecord (CObRecord* pRecord);
/* Events */
virtual void OnApply (void);
virtual void OnSave (void);
virtual void OnCancel (void);
/* Listener events */
virtual int OnListenAddRecord (CObListenEvent* pEvent);
virtual int OnListenCleanRecord (CObListenEvent* pEvent);
virtual int OnListenUpdateRecord (CObListenEvent* pEvent);
virtual int GetListenEvents (void) { return (OB_EVENT_ADDRECORD | OB_EVENT_CLEANRECORD | OB_EVENT_UPDATERECORD); }
/* Conver the current text data to binary */
bool ConvertBinaryData (void);
//{{AFX_DATA(CObFindDlg)
enum { IDD = IDD_FIND_DLG };
CStatic m_FindLabel;
CButton m_CaseSensitiveCheck;
CButton m_BinaryCheck;
CComboBox m_SearchCombo;
CObRecordVirtualListCtrl m_FindList;
//}}AFX_DATA
/* ClassWizard generated virtual function overrides */
//{{AFX_VIRTUAL(CObFindDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX);
virtual void OnInitialUpdate();
//}}AFX_VIRTUAL
protected:
/* Generated message map functions */
//{{AFX_MSG(CObFindDlg)
afx_msg void OnFindButton();
//}}AFX_MSG
DECLARE_MESSAGE_MAP();
};
/*===========================================================================
* End of Class CObFindDlg Definition
*=========================================================================*/
//{{AFX_INSERT_LOCATION}}
//}}AFX_INSERT_LOCATION
#endif
/*===========================================================================
* End of File Obfinddlg.H
*=========================================================================*/