-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathDlgLinerPara.h
73 lines (55 loc) · 1.69 KB
/
DlgLinerPara.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
#if !defined(AFX_DLGLINERPARA_H__CA65EBE3_E61B_4E4B_9C27_716F1FD13500__INCLUDED_)
#define AFX_DLGLINERPARA_H__CA65EBE3_E61B_4E4B_9C27_716F1FD13500__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgLinerPara.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDlgLinerPara dialog
class CDlgLinerPara : public CDialog
{
// Construction
public:
// 标识是否已经绘制橡皮筋线
BOOL m_bDrawed;
// 保存鼠标左键单击时的位置
CPoint m_p1;
// 保存鼠标拖动时的位置
CPoint m_p2;
// 当前鼠标拖动状态,TRUE表示正在拖动。
BOOL m_bIsDraging;
// 相应鼠标事件的矩形区域
CRect m_MouseRect;
CDlgLinerPara(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDlgLinerPara)
enum { IDD = IDD_DLG_LinerPara };
// 线性变换的斜率
float m_fA;
// 线性变换的截距
float m_fB;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgLinerPara)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDlgLinerPara)
afx_msg void OnPaint();
afx_msg void OnKillfocusEditA();
afx_msg void OnKillfocusEditB();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGLINERPARA_H__CA65EBE3_E61B_4E4B_9C27_716F1FD13500__INCLUDED_)