-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCSpectrometerCalibrationDlg.cpp
69 lines (55 loc) · 1.89 KB
/
CSpectrometerCalibrationDlg.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
// CSpectrometerCalibrationDlg.cpp : implementation file
//
#include "StdAfx.h"
#include "CSpectrometerCalibrationDlg.h"
#include "afxdialogex.h"
#include "resource.h"
#include "CCalibrateInstrumentLineShape.h"
#include "CCalibratePixelToWavelengthDialog.h"
#include "CCalibrateReferencesDialog.h"
// CSpectrometerCalibrationDlg dialog
CSpectrometerCalibrationDlg::CSpectrometerCalibrationDlg()
: CPropertySheet()
{
m_calibrateInstrumentLineShape = new CCalibrateInstrumentLineShape();
m_calibrateInstrumentLineShape->Construct(IDD_CALIBRATE_LINESHAPE_DIALOG);
m_calibratePixelToWavelength = new CCalibratePixelToWavelengthDialog();
m_calibratePixelToWavelength->Construct(IDD_CALIBRATE_WAVELENGTH_DIALOG);
m_calibrateReferences = new CCalibrateReferencesDialog();
m_calibrateReferences->Construct(IDD_CALIBRATE_REFERENCES);
AddPage(m_calibrateInstrumentLineShape);
AddPage(m_calibratePixelToWavelength);
AddPage(m_calibrateReferences);
}
CSpectrometerCalibrationDlg::~CSpectrometerCalibrationDlg()
{
delete m_calibratePixelToWavelength;
delete m_calibrateInstrumentLineShape;
delete m_calibrateReferences;
}
void CSpectrometerCalibrationDlg::DoDataExchange(CDataExchange* pDX)
{
CPropertySheet::DoDataExchange(pDX);
}
BOOL CSpectrometerCalibrationDlg::OnInitDialog()
{
BOOL bResult = CPropertySheet::OnInitDialog();
// ------------ Get the buttons ---------------
CWnd* pApply = this->GetDlgItem(ID_APPLY_NOW);
CWnd* pCancel = this->GetDlgItem(IDCANCEL);
CWnd* pOk = this->GetDlgItem(IDOK);
// Remove each of the buttons
if (pApply) {
pApply->DestroyWindow();
}
if (pCancel) {
pCancel->DestroyWindow();
}
if (pOk) {
pOk->DestroyWindow();
}
return bResult;
}
BEGIN_MESSAGE_MAP(CSpectrometerCalibrationDlg, CPropertySheet)
END_MESSAGE_MAP()
// CSpectrometerCalibrationDlg message handlers