-
Notifications
You must be signed in to change notification settings - Fork 8
/
DlgPhase.h
88 lines (71 loc) · 1.74 KB
/
DlgPhase.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
#pragma once
#include "afxwin.h"
#include "FA2013Doc.h"
#include<vector>
#include "afxcmn.h"
class CPhaseView;
class CFA2013Doc;
class CDlgPhase;
// CDlgPhase 对话框
class CDlgPhase : public CDialog
{
DECLARE_DYNAMIC(CDlgPhase)
public:
CDlgPhase(CWnd* pParent = NULL); // 标准构造函数
virtual ~CDlgPhase();
// 对话框数据
enum { IDD = IDD_Phase };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
public:
CFA2013Doc* pDoc;
CPhaseView* m_pView;
CListBox WaitList;
CListBox CurList;
afx_msg void OnBnClickedInserttolist();
virtual BOOL OnInitDialog();
afx_msg void OnBnClickedDeleteone();
afx_msg void OnBnClickedDeleteall();
// afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message);
double Vps;
double Ips;
int m_Mode;
afx_msg void OnBnClickedVinc();
afx_msg void OnBnClickedIinc();
afx_msg void OnBnClickedVdec();
afx_msg void OnBnClickedIdec();
afx_msg void OnBnClickedVini();
afx_msg void OnBnClickedIini();
afx_msg void OnBnClickedPhasemode();
CButton ModeButton;
CListCtrl PhaseList;
virtual void OnCancel();
virtual void PostNcDestroy();
afx_msg void OnClose();
};
#pragma once
// CPhaseView 视图
class CPhaseView : public CView
{
DECLARE_DYNCREATE(CPhaseView)
protected:
CPhaseView(); // 动态创建所使用的受保护的构造函数
virtual ~CPhaseView();
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;
afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message);
int DrawPhase(CDC* pDC);
int CursorNum1;
CDlgPhase* m_pDlg;
};