-
Notifications
You must be signed in to change notification settings - Fork 2
/
SetExactViewSheet.cpp
55 lines (44 loc) · 1.56 KB
/
SetExactViewSheet.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
// SetExactViewSheet.cpp : implementation file
//
#include "stdafx.h"
#include "OnStation.h"
#include "SetExactViewSheet.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CSetExactViewSheet
IMPLEMENT_DYNAMIC(CSetExactViewSheet, CPropertySheet)
CSetExactViewSheet::CSetExactViewSheet(UINT nIDCaption, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(nIDCaption, pParentWnd, iSelectPage),m_ViewPage(0.0f,0.0f),m_ViewScale(0.0f)
{
ASSERT(FALSE); //do not use this one
}
CSetExactViewSheet::CSetExactViewSheet(COnStationView *view,LPCTSTR pszCaption,float fClock,float fTilt,float fScale,
float fDx,float fDy,float fDz, CWnd* pParentWnd, UINT iSelectPage)
:CPropertySheet(pszCaption, pParentWnd, iSelectPage),m_ViewPage(fClock,fTilt),m_ViewCenter(fDx,fDy,fDz),m_ViewScale(fScale)
{
m_fClockwise=fClock;
m_fTilt=fTilt;
m_fScaling=fScale;
m_fDx=fDx;
m_fDy=fDy;
m_fDz=fDz;
AddPage(&m_ViewPage);
AddPage(&m_ViewCenter);
AddPage(&m_ViewScale);
// This is how we handle the APPLY NOW case
m_ViewCenter.Initialize(view);
}
CSetExactViewSheet::~CSetExactViewSheet()
{
}
BEGIN_MESSAGE_MAP(CSetExactViewSheet, CPropertySheet)
//{{AFX_MSG_MAP(CSetExactViewSheet)
// NOTE - the ClassWizard will add and remove mapping macros here.
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CSetExactViewSheet message handlers