author | Michael Krelin <hacker@klever.net> | 2012-12-08 21:19:17 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2012-12-11 21:59:29 (UTC) |
commit | 8808689fe340bec6e90ab13dd502292b0579cf1f (patch) (unidiff) | |
tree | 45b7c863151341f687b74e40bffcbd7ab5468783 /PropsNetwork.cpp | |
parent | 6e7e413ca364d79673e523c09767c18e7cff1bec (diff) | |
download | pumpkin-8808689fe340bec6e90ab13dd502292b0579cf1f.zip pumpkin-8808689fe340bec6e90ab13dd502292b0579cf1f.tar.gz pumpkin-8808689fe340bec6e90ab13dd502292b0579cf1f.tar.bz2 |
initial osx portosx/0.0
Signed-off-by: Michael Krelin <hacker@klever.net>
-rwxr-xr-x | PropsNetwork.cpp | 74 |
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 | ||
11 | static char THIS_FILE[] = __FILE__; | ||
12 | #endif | ||
13 | |||
14 | ///////////////////////////////////////////////////////////////////////////// | ||
15 | // CPropsNetwork property page | ||
16 | |||
17 | IMPLEMENT_DYNCREATE(CPropsNetwork, CPropertyPage) | ||
18 | |||
19 | CPropsNetwork::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 | |||
30 | CPropsNetwork::~CPropsNetwork() | ||
31 | { | ||
32 | } | ||
33 | |||
34 | void 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 | |||
53 | BEGIN_MESSAGE_MAP(CPropsNetwork, CPropertyPage) | ||
54 | //{{AFX_MSG_MAP(CPropsNetwork) | ||
55 | //}}AFX_MSG_MAP | ||
56 | END_MESSAGE_MAP() | ||
57 | |||
58 | ///////////////////////////////////////////////////////////////////////////// | ||
59 | // CPropsNetwork message handlers | ||
60 | |||
61 | BOOL 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); | ||
69 | UDACCEL 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 | } | ||