appleview.h

来自「(原创)研究生期间学习人工神经网张和遗传算法实现的简单的水果识别源码. 水果特」· C头文件 代码 · 共 63 行

H
63 行
字号
// AppleView.h : CAppleView 类的接口
//


#pragma once



class CAppleView : public CView
{
protected: // 仅从序列化创建
	CAppleView();
	DECLARE_DYNCREATE(CAppleView)

// 属性
public:
	CAppleDoc* GetDocument() const;

// 操作
public:
	CString m_result;
	CPoint m_MousePos;
	void drawpic(int i);
	//afx_msg LRESULT OnMyMessage(WPARAM wParam, LPARAM lParam);

//	void DrawArrow(CPaintDC &dc, CPoint p1, CPoint p2);

// 重写
	public:
	virtual void OnDraw(CDC* pDC);  // 重写以绘制该视图
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	CDC *pdc;
	
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);

// 实现
public:
	virtual ~CAppleView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// 生成的消息映射函数
protected:
	DECLARE_MESSAGE_MAP()
public:
	virtual void OnInitialUpdate();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	
};

#ifndef _DEBUG  // AppleView.cpp 的调试版本
inline CAppleDoc* CAppleView::GetDocument() const
   { return reinterpret_cast<CAppleDoc*>(m_pDocument); }
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?