-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMainDlg.h
103 lines (85 loc) · 2.88 KB
/
MainDlg.h
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
93
94
95
96
97
98
99
100
101
102
103
// MainDlg.h : header file
//
#if !defined(AFX_MAINDLG_H__DC78642A_3F99_11D3_983E_00E018900F2A__INCLUDED_)
#define AFX_MAINDLG_H__DC78642A_3F99_11D3_983E_00E018900F2A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif
#include "BaseDefines.h"
#include <afxwin.h>
// Property Pages
#include "DetailDlg.h"
#include "StatusDlg.h"
#include "EngineViewDlg.h" // New client view
#include "StatusBitsDlg.h" // Binary Status Bits
#include "DashBoardDlg.h" // Pretty graphics
#include "TCodesDlg.h" // Trouble Codes
#include "SensorDlg.h" // Raw ADC Sensor Values
#include "AdvancedDlg.h" // Advanced ECU things like Desired Idle
#include "About.h"
#ifdef _DEBUG
#include "EngineDlg.h" // Real world values of the Engine
#include "RawMode00.h" // Hex Dump of Mode 0 Dlg
#include "RawMode01.h" // Hex Dump of Mode 1 Dlg
#endif // _DEBUG
#include "EcuData.h"
#include "SupervisorInterface.h"
/////////////////////////////////////////////////////////////////////////////
// CFreeScanDlg dialog
class CFreeScanDlg : public CPropertySheet
{
DECLARE_DYNAMIC(CFreeScanDlg);
// Construction
public:
CFreeScanDlg(UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
CFreeScanDlg(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
virtual ~CFreeScanDlg();
private:
void AllocateAndAddPages(void);
void SetLogoFont(CString Name, int nHeight = 24, int nWeight = FW_BOLD,
BYTE bItalic = true, BYTE bUnderline = false);
void SetLogoText(CString Text);
//Attributes
CStatusDlg* m_pStatusDlg; // This is the "Spy" window
CSupervisorInterface* m_pSupervisor; // This fathoms out the data-stream
//Classes for our property pages
CDetailDlg* m_pDetailDlg;
CEngineViewDlg* m_pEngineViewDlg;
CStatusBitsDlg* m_pStatusBitsDlg;
CDashBoardDlg* m_pDashBoardDlg;
CTCodesDlg* m_pTCodesDlg;
CSensorDlg* m_pSensorDlg;
CAdvancedDlg* m_pAdvancedDlg;
CAbout* m_pAbout;
#ifdef _DEBUG
CEngineDlg* m_pEngineDlg;
CRawMode00* m_pRawMode00Dlg;
CRawMode01* m_pRawMode01Dlg;
#endif // _DEBUG
public:
// Implementation
void Update(const CEcuData* const ecuData); //Updates the dialog
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFreeScanDlg)
//}}AFX_VIRTUAL
// Implementation
private:
HICON m_hIcon;
CFont m_fontLogo; // Font for our logo
CString m_LogoText; // Text for our logo
void WriteStatus(CString csText);
void WriteASCII(unsigned char * buffer, int ilength);
void WriteLogEntry(LPCTSTR pstrFormat, ...);
void WriteStatusLogged(CString csText);
// Generated message map functions
//{{AFX_MSG(CFreeScanDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINDLG_H__DC78642A_3F99_11D3_983E_00E018900F2A__INCLUDED_)