-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDlgSeqComp.h
122 lines (97 loc) · 2.3 KB
/
DlgSeqComp.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#pragma once
#include"FA2013Doc.h"
#include "afxwin.h"
#include "afxcmn.h"
class CFA2013Doc;
class CDlgSeqComp;
class CSeqPView;
class CSeqSView;
// CDlgSeqComp 对话框
class CDlgSeqComp : public CDialog
{
DECLARE_DYNAMIC(CDlgSeqComp)
public:
CDlgSeqComp(CWnd* pParent = NULL); // 标准构造函数
virtual ~CDlgSeqComp();
// 对话框数据
enum { IDD = IDD_SeqComp };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
public:
CFA2013Doc* pDoc;
CSeqPView* m_pPView;
CSeqSView* m_pSView;
CComboBox ChanA;
CComboBox ChanB;
CComboBox ChanC;
double Pps; //相量
double Sps; //序量
int m_Mode; //旋转模式
virtual BOOL OnInitDialog();
afx_msg void OnCbnSelchangeChana();
afx_msg void OnCbnSelchangeChanb();
afx_msg void OnCbnSelchangeChanc();
CListCtrl PDList;
CListCtrl SDList;
afx_msg void OnBnClickedPinc();
afx_msg void OnBnClickedPdec();
afx_msg void OnBnClickedSinc();
afx_msg void OnBnClickedSdec();
afx_msg void OnBnClickedPini();
afx_msg void OnBnClickedSini();
afx_msg void OnBnClickedTurnmode();
virtual void OnCancel();
virtual void PostNcDestroy();
afx_msg void OnClose();
};
#pragma once
// CSeqPView 视图
class CSeqPView : public CView
{
DECLARE_DYNCREATE(CSeqPView)
protected:
CSeqPView(); // 动态创建所使用的受保护的构造函数
virtual ~CSeqPView();
public:
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
#ifdef _DEBUG
virtual void AssertValid() const;
#ifndef _WIN32_WCE
virtual void Dump(CDumpContext& dc) const;
#endif
#endif
protected:
DECLARE_MESSAGE_MAP()
public:
CFA2013Doc* pDoc;
CDlgSeqComp* m_pDlg;
int DrawP(CDC* pDC);
int CursorNum1;
afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message);
};
#pragma once
// CSeqSView 视图
class CSeqSView : public CView
{
DECLARE_DYNCREATE(CSeqSView)
protected:
CSeqSView(); // 动态创建所使用的受保护的构造函数
virtual ~CSeqSView();
public:
virtual void OnDraw(CDC* pDC); // 重写以绘制该视图
#ifdef _DEBUG
virtual void AssertValid() const;
#ifndef _WIN32_WCE
virtual void Dump(CDumpContext& dc) const;
#endif
#endif
protected:
DECLARE_MESSAGE_MAP()
public:
CFA2013Doc* pDoc;
CDlgSeqComp* m_pDlg;
int DrawS(CDC* pDC);
int CursorNum1;
afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message);
};