forked from baycom/poc32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
set.cpp
executable file
·59 lines (50 loc) · 1.28 KB
/
set.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
56
57
58
59
// Set.cpp : implementation file
//
#include "stdafx.h"
#include "pex32.h"
#include "Decoder.h"
#include "Encoder.h"
#include "Hardware.h"
#include "Statistic.h"
#include "Set.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSet
IMPLEMENT_DYNAMIC (CSet, CPropertySheet) CSet::CSet (UINT nIDCaption, CWnd * pParentWnd, UINT iSelectPage):CPropertySheet (nIDCaption, pParentWnd,
iSelectPage)
{
}
CSet::CSet (LPCTSTR pszCaption, CWnd * pParentWnd, UINT iSelectPage):CPropertySheet (pszCaption, pParentWnd,
iSelectPage)
{
AddPage (&m_dec);
AddPage (&m_enc);
AddPage (&m_hw);
AddPage (&m_st);
m_activepage = GetPageIndex (&m_dec);
TRACE ("Prop COnst\n");
}
CSet::~CSet ()
{
}
BEGIN_MESSAGE_MAP (CSet, CPropertySheet)
//{{AFX_MSG_MAP(CSet)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP ()
/////////////////////////////////////////////////////////////////////////////
// CSet message handlers
int CSet::DoModal ()
{
SetActivePage (m_activepage);
return CPropertySheet::DoModal ();
}
BOOL CSet::DestroyWindow ()
{
m_activepage = GetActiveIndex ();
return CPropertySheet::DestroyWindow ();
}