-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDlgBusDiff.h
92 lines (76 loc) · 1.92 KB
/
DlgBusDiff.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
#pragma once
#include "FA2013Doc.h"
#include "afxwin.h"
class CFA2013Doc;
class CBusDiffView;
class CDlgBusDiff;
// CDlgBusDiff 对话框
class CDlgBusDiff : public CDialogEx
{
DECLARE_DYNAMIC(CDlgBusDiff)
public:
CDlgBusDiff(CWnd* pParent = NULL); // 标准构造函数
virtual ~CDlgBusDiff();
// 对话框数据
enum { IDD = IDD_BusDiff };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
public:
CFA2013Doc* pDoc;
CBusDiffView* m_pView;
virtual BOOL OnInitDialog();
CComboBox Ia1List;
CComboBox Ib1List;
CComboBox Ic1List;
CComboBox Ia2List;
CComboBox Ib2List;
CComboBox Ic2List;
CComboBox BDTypeList;
double Im,Iop,Iopres,Kres,Iresm;
int LocFlag;//轨迹
int Ia1,Ia2,Ib1,Ib2,Ic1,Ic2;
afx_msg void OnCbnSelchangeIa1list();
afx_msg void OnCbnSelchangeIb1list();
afx_msg void OnCbnSelchangeIc1list();
afx_msg void OnCbnSelchangeIa2list();
afx_msg void OnCbnSelchangeIb2list();
afx_msg void OnCbnSelchangeIc2list();
afx_msg void OnBnClickedLocvisable();
afx_msg void OnBnClickeddiinc();
afx_msg void OnBnClickeddidec();
afx_msg void OnBnClickeddirst();
afx_msg void OnCbnSelchangeBusdifftype();
afx_msg void OnBnClickedSetdata();
virtual void OnCancel();
virtual void PostNcDestroy();
afx_msg void OnClose();
};
#pragma once
// CBusDiffView 视图
class CBusDiffView : public CView
{
DECLARE_DYNCREATE(CBusDiffView)
protected:
CBusDiffView(); // 动态创建所使用的受保护的构造函数
virtual ~CBusDiffView();
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;
CDlgBusDiff* m_pDlg;
CPoint MidP;
int DrawBusDiff(CDC* pDC);
double SPD,IPS;
double DefaultSPD,DefaultIPS;
int CursorNum1;
afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message);
};