[dad864]: SearchNode.cpp  Maximize  Restore  History

Download this file

83 lines (68 with data), 1.6 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// SearchNode.cpp : implementation file
//
#include "stdafx.h"
#include "chitem.h"
#include "SearchNode.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSearchNode dialog
CSearchNode::CSearchNode(CWnd* pParent /*=NULL*/)
: CDialog(CSearchNode::IDD, pParent)
{
//{{AFX_DATA_INIT(CSearchNode)
m_text = _T("");
m_nodetype = 2;
m_type = FALSE;
m_node = 0;
m_ignorecase = TRUE;
m_part = 2;
//}}AFX_DATA_INIT
}
void CSearchNode::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CSearchNode)
DDX_Text(pDX, IDC_TEXT, m_text);
DDX_Radio(pDX, IDC_TRAN, m_nodetype);
DDX_Check(pDX, IDC_TYPE, m_type);
DDX_Text(pDX, IDC_NODE, m_node);
DDX_Check(pDX, IDC_IGNORECASE, m_ignorecase);
DDX_Radio(pDX, IDC_STRING, m_part);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CSearchNode, CDialog)
//{{AFX_MSG_MAP(CSearchNode)
ON_EN_KILLFOCUS(IDC_NODE, OnKillfocusNode)
ON_BN_CLICKED(IDC_TOP, OnTop)
ON_EN_KILLFOCUS(IDC_TEXT, OnKillfocusText)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSearchNode message handlers
void CSearchNode::OnKillfocusNode()
{
UpdateData(UD_RETRIEVE);
UpdateData(UD_DISPLAY);
}
void CSearchNode::OnTop()
{
UpdateData(UD_RETRIEVE);
m_node=0;
m_type=true;
UpdateData(UD_DISPLAY);
}
void CSearchNode::OnKillfocusText()
{
UpdateData(UD_RETRIEVE);
UpdateData(UD_DISPLAY);
}
void CSearchNode::OnOK()
{
UpdateData(UD_RETRIEVE);
m_nodepart=m_part+1;
CDialog::OnOK();
}

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks