computerview.h
来自「MFC界面:1.模拟立方体摄像机成像2.区域录属判别. 实验一:点击实验一下的」· C头文件 代码 · 共 77 行
H
77 行
// computerView.h : interface of the CComputerView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_COMPUTERVIEW_H__BEDDC905_E1DD_4AE0_AB91_825BD59786A2__INCLUDED_)
#define AFX_COMPUTERVIEW_H__BEDDC905_E1DD_4AE0_AB91_825BD59786A2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CComputerView : public CView
{
protected: // create from serialization only
CComputerView();
DECLARE_DYNCREATE(CComputerView);
// Attributes
public:
CComputerDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CComputerView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
void Classify(int cent_x=0,int cent_y=0);
int Max(int a,int b);
virtual ~CComputerView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CComputerView)
afx_msg void OnExperiment1();
afx_msg void OnExperiment2();
afx_msg void OnExperiment3();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in computerView.cpp
inline CComputerDoc* CComputerView::GetDocument()
{ return (CComputerDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_COMPUTERVIEW_H__BEDDC905_E1DD_4AE0_AB91_825BD59786A2__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?