📄 target.h
字号:
#if !defined(AFX_TARGET_H__2D890721_20B6_11D6_B814_5254AB4D0F58__INCLUDED_)
#define AFX_TARGET_H__2D890721_20B6_11D6_B814_5254AB4D0F58__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Target.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// Target window
#define WM_ENDCLICK (WM_USER+100)
#define WM_CANCELCLICK (WM_USER+101)
#define PI 3.1415926
class CTarget : public CWnd
{
// Construction
public:
CTarget();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTarget)
//}}AFX_VIRTUAL
// Implementation
public:
double GetArea_Circle_Inch();
double GetArea_Circle_MM();
int GetArea_Circle_Pixel();
int GetArea_Rectangle_Pixel();
double GetArea_Rectangle_Inch();
double GetArea_Rectangle_MM();
void SetColor(COLORREF Aux, COLORREF Start, COLORREF Font);
double GetLength_Inch();
double GetLength_MM();
int GetLength_Pixel();
RECT GetPoints();
void CreateTarget(LPCTSTR lpTitle, CWnd* pWnd);
virtual ~CTarget();
// Generated message map functions
protected:
//{{AFX_MSG(CTarget)
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
double m_AreaRectangle_Inch;
int m_AreaRectangle_Pixel;
double m_AreaRectangle_MM;
CDC m_MemDC;
COLORREF m_colorFont;
COLORREF m_colorStart;
COLORREF m_colorAux;
int m_iLen_p;
double m_dLen_i;
double m_dLen_m;
POINT m_StartPos;
POINT m_EndPos;
CPen * m_pPenAux;
int m_cyScreen;
int m_cxScreen;
void Calculate();
CWnd * m_pWndParent;
BOOL m_bSecond;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TARGET_H__2D890721_20B6_11D6_B814_5254AB4D0F58__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -