-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathTagInputDlg.cpp
78 lines (61 loc) · 1.91 KB
/
TagInputDlg.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//====================================================================================
// Open Computer and Software Inventory Next Generation
// Copyright (C) 2010 OCS Inventory Team. All rights reserved.
// Web: http://www.ocsinventory-ng.org
// This code is open source and may be copied and modified as long as the source
// code is always made freely available.
// Please refer to the General Public Licence V2 http://www.gnu.org/ or Licence.txt
//====================================================================================
// TagInputDlg.cpp : implementation file
//
#include "stdafx.h"
#include "OcsNotifyUser.h"
#include "TagInputDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTagInputDlg dialog
CTagInputDlg::CTagInputDlg(CWnd* pParent /*=NULL*/)
: CDialog(CTagInputDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CTagInputDlg)
m_csLabelText = _T("");
m_csTagValue = _T("");
//}}AFX_DATA_INIT
}
void CTagInputDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTagInputDlg)
DDX_Control(pDX, IDC_VAL, m_controlTag);
DDX_Text(pDX, IDC_LABEL_TEXT, m_csLabelText);
DDX_Text(pDX, IDC_VAL, m_csTagValue);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTagInputDlg, CDialog)
//{{AFX_MSG_MAP(CTagInputDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTagInputDlg message handlers
BOOL CTagInputDlg::OnInitDialog()
{
CDialog::OnInitDialog();
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void CTagInputDlg::OnOK()
{
CDialog::OnOK();
}
void CTagInputDlg::setLabelText(LPCTSTR lpstrLabelText)
{
m_csLabelText = lpstrLabelText;
}
LPCTSTR CTagInputDlg::getTagValue()
{
return m_csTagValue;
}