📄 linerparadlg.h
字号:
#if !defined(AFX_LINERPARADLG_H__F2D4B42B_E258_46E9_A2A3_C2826E0E1A2B__INCLUDED_)
#define AFX_LINERPARADLG_H__F2D4B42B_E258_46E9_A2A3_C2826E0E1A2B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LinerParaDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CLinerParaDlg dialog
class CLinerParaDlg : public CDialog
{
// Construction
public:
CLinerParaDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
public:
BOOL m_bDrawed; // 标识是否已经绘制橡皮筋线
CPoint m_p1; // 保存鼠标左键单击时的位置
CPoint m_p2; // 保存鼠标拖动时的位置
BOOL m_bIsDraging; // 当前鼠标拖动状态,TRUE表示正在拖动。
CRect m_MouseRect; // 相应鼠标事件的矩形区域
//{{AFX_DATA(CLinerParaDlg)
enum { IDD = IDD_DLG_LINERPARA };
float m_fA; // 线性变换的斜率
float m_fB; // 线性变换的截距
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLinerParaDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CLinerParaDlg)
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_LINERPARADLG_H__F2D4B42B_E258_46E9_A2A3_C2826E0E1A2B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -