-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNonPlatedThruHoleSheet.cpp
92 lines (69 loc) · 2.79 KB
/
NonPlatedThruHoleSheet.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// NonPlatedThruHoleSheet.cpp : implementation file
//
#include "stdafx.h"
#include "AP210Viewer.h"
#include "NonPlatedThruHoleSheet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CNonPlatedThruHoleSheet
IMPLEMENT_DYNAMIC(CNonPlatedThruHoleSheet, CPropertySheet)
CNonPlatedThruHoleSheet::CNonPlatedThruHoleSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage) {
EnableAutomation();
// NonPlatedThruHole page
AddPage(&m_npthPage);
}
CNonPlatedThruHoleSheet::CNonPlatedThruHoleSheet(LPCTSTR pszCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(pszCaption, pParentWnd, iSelectPage) {
EnableAutomation();
// NonPlatedThruHole page
AddPage(&m_npthPage);
}
CNonPlatedThruHoleSheet::~CNonPlatedThruHoleSheet()
{
}
void CNonPlatedThruHoleSheet::OnFinalRelease()
{
// When the last reference for an automation object is released
// OnFinalRelease is called. The base class will automatically
// deletes the object. Add additional cleanup required for your
// object before calling the base class.
CPropertySheet::OnFinalRelease();
}
BEGIN_MESSAGE_MAP(CNonPlatedThruHoleSheet, CPropertySheet)
//{{AFX_MSG_MAP(CNonPlatedThruHoleSheet)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
BEGIN_DISPATCH_MAP(CNonPlatedThruHoleSheet, CPropertySheet)
//{{AFX_DISPATCH_MAP(CNonPlatedThruHoleSheet)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_DISPATCH_MAP
END_DISPATCH_MAP()
// Note: we add support for IID_INonPlatedThruHoleSheet to support typesafe binding
// from VBA. This IID must match the GUID that is attached to the
// dispinterface in the .ODL file.
// {DD02EDC5-F163-11D4-8A9A-0080AD428934}
static const IID IID_INonPlatedThruHoleSheet =
{ 0xdd02edc5, 0xf163, 0x11d4, { 0x8a, 0x9a, 0x0, 0x80, 0xad, 0x42, 0x89, 0x34 } };
BEGIN_INTERFACE_MAP(CNonPlatedThruHoleSheet, CPropertySheet)
INTERFACE_PART(CNonPlatedThruHoleSheet, IID_INonPlatedThruHoleSheet, Dispatch)
END_INTERFACE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CNonPlatedThruHoleSheet message handlers
void CNonPlatedThruHoleSheet::setValues(SdaiModel AP210Model, NonPlatedThruHole *npth) {
m_npthPage.setValues(AP210Model, npth);
}
void CNonPlatedThruHoleSheet::setReadOnly(BOOL mode) {
m_npthPage.setReadOnly(mode);
}
BOOL CNonPlatedThruHoleSheet::OnInitDialog()
{
CPropertySheet::OnInitDialog();
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}