forked from baycom/poc32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathencoder.cpp
executable file
·55 lines (47 loc) · 1.25 KB
/
encoder.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
// Encoder.cpp : implementation file
//
#include "stdafx.h"
#include "pex32.h"
#include "Encoder.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEncoder property page
IMPLEMENT_DYNCREATE (CEncoder, CPropertyPage) CEncoder::CEncoder ():CPropertyPage (CEncoder::
IDD)
{
//{{AFX_DATA_INIT(CEncoder)
m_txdelay = 0;
m_pttinv = FALSE;
m_txinv = FALSE;
//}}AFX_DATA_INIT
}
CEncoder::~CEncoder ()
{
}
void
CEncoder::DoDataExchange (CDataExchange * pDX)
{
CPropertyPage::DoDataExchange (pDX);
//{{AFX_DATA_MAP(CEncoder)
DDX_Text (pDX, IDC_EDTTXDELAY, m_txdelay);
DDV_MinMaxUInt (pDX, m_txdelay, 5, 500);
DDX_Check (pDX, IDC_PTTINV, m_pttinv);
DDX_Check (pDX, IDC_TXINV, m_txinv);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP (CEncoder, CPropertyPage)
//{{AFX_MSG_MAP(CEncoder)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP ()
/////////////////////////////////////////////////////////////////////////////
// CEncoder message handlers
BOOL CEncoder::OnCommand (WPARAM wParam, LPARAM lParam)
{
SetModified (TRUE);
return CPropertyPage::OnCommand (wParam, lParam);
}