📄 test1view.h
字号:
// test1View.h : interface of the CTest1View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_TEST1VIEW_H__61A33B47_8829_44DC_9BD2_7F13616A2D6D__INCLUDED_)
#define AFX_TEST1VIEW_H__61A33B47_8829_44DC_9BD2_7F13616A2D6D__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
struct CXData
{
int x;
int y;
};
class CTest1View : public CView
{
protected: // create from serialization only
CTest1View();
DECLARE_DYNCREATE(CTest1View)
// Attributes
public:
CTest1Doc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTest1View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CTest1View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CTest1View)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnFcm();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void DispDate();
void DispClusterCenter(CDC* pDC,int ClCNum);
double uIndex[3][30];
double m_nDistance[3][30];
void CreateClusterCenter();
double m_nPpdistance;
int m_nCenterNumber;
int m_nDataNumber;
void DrawLump(CDC *pDC, int x1, int y1, int x2, int y2,int red,int green,int blue);
void DispPpCentoCenter(CDC* pDC,int CLCNum);
void PpDistance();
void Distance(CXData* cID,CXData* cClC);
CPoint m_pOld;
BOOL m_bDraw;
CPoint m_pTOrigin;
};
#ifndef _DEBUG // debug version in test1View.cpp
inline CTest1Doc* CTest1View::GetDocument()
{ return (CTest1Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TEST1VIEW_H__61A33B47_8829_44DC_9BD2_7F13616A2D6D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -