summaryrefslogtreecommitdiffabout
path: root/PropsNetwork.cpp
Unidiff
Diffstat (limited to 'PropsNetwork.cpp') (more/less context) (ignore whitespace changes)
-rwxr-xr-xPropsNetwork.cpp74
1 files changed, 0 insertions, 74 deletions
diff --git a/PropsNetwork.cpp b/PropsNetwork.cpp
deleted file mode 100755
index 2dd5913..0000000
--- a/PropsNetwork.cpp
+++ b/dev/null
@@ -1,74 +0,0 @@
1// PropsNetwork.cpp : implementation file
2//
3
4#include "stdafx.h"
5#include "PumpKIN.h"
6#include "PropsNetwork.h"
7
8#ifdef _DEBUG
9#define new DEBUG_NEW
10#undef THIS_FILE
11static char THIS_FILE[] = __FILE__;
12#endif
13
14/////////////////////////////////////////////////////////////////////////////
15// CPropsNetwork property page
16
17IMPLEMENT_DYNCREATE(CPropsNetwork, CPropertyPage)
18
19CPropsNetwork::CPropsNetwork() : CPropertyPage(CPropsNetwork::IDD)
20{
21 //{{AFX_DATA_INIT(CPropsNetwork)
22 m_ListenPort = 0;
23 m_SpeakPort = 0;
24 m_TimeOut = 0;
25 m_BlockSize = 0;
26 m_ListenAddress = _T("");
27 //}}AFX_DATA_INIT
28}
29
30CPropsNetwork::~CPropsNetwork()
31{
32}
33
34void CPropsNetwork::DoDataExchange(CDataExchange* pDX)
35{
36 CPropertyPage::DoDataExchange(pDX);
37 //{{AFX_DATA_MAP(CPropsNetwork)
38 DDX_Control(pDX, IDC_BSIZESPIN, m_BSizeSpinCtl);
39 DDX_Control(pDX, IDC_TIMESPIN, m_TimeSpinCtl);
40 DDX_Control(pDX, IDC_SPEAKSPIN, m_SpeakSpinCtl);
41 DDX_Control(pDX, IDC_LISTENSPIN, m_ListenSpinCtl);
42 DDX_Text(pDX, IDC_LISTENPORT, m_ListenPort);
43 DDX_Text(pDX, IDC_SPEAKPORT, m_SpeakPort);
44 DDX_Text(pDX, IDC_TIMEOUT, m_TimeOut);
45 DDV_MinMaxUInt(pDX, m_TimeOut, 5, 60);
46 DDX_Text(pDX, IDC_BLOCKSIZE, m_BlockSize);
47 DDX_Text(pDX, IDC_LISTENADDRESS, m_ListenAddress);
48 DDV_MaxChars(pDX, m_ListenAddress, 15);
49 //}}AFX_DATA_MAP
50}
51
52
53BEGIN_MESSAGE_MAP(CPropsNetwork, CPropertyPage)
54 //{{AFX_MSG_MAP(CPropsNetwork)
55 //}}AFX_MSG_MAP
56END_MESSAGE_MAP()
57
58/////////////////////////////////////////////////////////////////////////////
59// CPropsNetwork message handlers
60
61BOOL CPropsNetwork::OnInitDialog()
62{
63 CPropertyPage::OnInitDialog();
64
65 m_ListenSpinCtl.SetRange(0,32767);
66 m_SpeakSpinCtl.SetRange(0,32767);
67 m_TimeSpinCtl.SetRange(5,60);
68 m_BSizeSpinCtl.SetRange(512,16384);
69UDACCEL uda = {0,512};
70 m_BSizeSpinCtl.SetAccel(1,&uda);
71
72 return TRUE; // return TRUE unless you set the focus to a control
73 // EXCEPTION: OCX Property Pages should return FALSE
74}