[go: up one dir, main page]

Menu

[r990]: / trunk / VTS3 / VTSActionDlg.cpp  Maximize  Restore  History

Download this file

79 lines (63 with data), 1.8 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
// VTSActionDlg.cpp : implementation file
//
#include "stdafx.h"
#include "vts.h"
#include "VTSActionDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// VTSActionDlg dialog
#pragma warning( disable : 4355 )
VTSActionDlg::VTSActionDlg(CWnd* pParent /*=NULL*/)
: CDialog(VTSActionDlg::IDD, pParent)
, m_actcombo( this, IDC_ACTIONCOMBO, NetworkSniffer::BAC_STRTAB_BACnetAction, true )
{
// m_actcombo.ctrlNull = true;
//{{AFX_DATA_INIT(VTSActionDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
#pragma warning( default : 4355 )
void VTSActionDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(VTSActionDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(VTSActionDlg, CDialog)
//{{AFX_MSG_MAP(VTSActionDlg)
ON_CBN_DROPDOWN(IDC_ACTIONCOMBO, OnDropdownActioncombo)
ON_CBN_SELCHANGE(IDC_ACTIONCOMBO, OnSelchangeActioncombo)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// VTSActionDlg message handlers
void VTSActionDlg::OnDropdownActioncombo()
{
// TODO: Add your control notification handler code here
}
void VTSActionDlg::OnSelchangeActioncombo()
{
m_actcombo.ctrlNull = false;
m_actcombo.CtrlToObj();
}
void VTSActionDlg::Encode(BACnetAPDUEncoder& enc, int context)
{
m_actcombo.Encode(enc, context);
}
void VTSActionDlg::Decode(BACnetAPDUDecoder& dec )
{
if(dec.pktLength!=0)
m_actcombo.Decode(dec);
}
BOOL VTSActionDlg::OnInitDialog()
{
CDialog::OnInitDialog();
m_actcombo.LoadCombo();
m_actcombo.ObjToCtrl();
return TRUE;
}