[go: up one dir, main page]

Menu

[r231]: / trunk / VTS3 / VTSDevicesDlg.h  Maximize  Restore  History

Download this file

79 lines (63 with data), 2.2 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
#if !defined(AFX_VTSDEVICESDLG_H__86B18060_B765_11D5_8886_00A0C9E370F1__INCLUDED_)
#define AFX_VTSDEVICESDLG_H__86B18060_B765_11D5_8886_00A0C9E370F1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// VTSDevicesDlg.h : header file
//
#include "VTSDoc.h"
/////////////////////////////////////////////////////////////////////////////
// VTSDevicesDlg dialog
class VTSDevicesDlg : public CDialog
{
// Construction
public:
VTSDevicesDlg(CWnd* pParent = NULL); // standard constructor (not used)
VTSDevicesDlg( VTSDeviceListPtr dlp ); // ctor
void InitDeviceList( void ); // init the device list
void SetSelection( int indx );
void ResetSelection( void ); // nothing selected
void SynchronizeControls( void ); // sync list and controls
void SaveChanges( void ); // new values to update selected name
void DeviceToList( VTSDevicePtr dp, int elem );
void DeviceToCtrl( VTSDevicePtr dp );
void CtrlToDevice( VTSDevicePtr dp );
// Dialog Data
//{{AFX_DATA(VTSDevicesDlg)
enum { IDD = IDD_DEVICES };
CListCtrl m_DeviceList;
CString m_Name;
CString m_Instance;
CString m_SegSize;
CString m_WindowSize;
CString m_NextInvokeID;
CString m_MaxAPDUSize;
CString m_APDUTimeout;
CString m_APDUSegTimeout;
CString m_APDURetries;
CString m_VendorID;
int m_Segmentation;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(VTSDevicesDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
VTSDeviceListPtr m_pDeviceList; // pointer to list of Devices
int m_iSelectedDevice; // index of selected name
// Generated message map functions
//{{AFX_MSG(VTSDevicesDlg)
virtual BOOL OnInitDialog();
afx_msg void OnNew();
afx_msg void OnItemchangingDevicelist(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnDblclkDevicelist(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnIAm();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_VTSDEVICESDLG_H__86B18060_B765_11D5_8886_00A0C9E370F1__INCLUDED_)