⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 appleview.h

📁 (原创)研究生期间学习人工神经网张和遗传算法实现的简单的水果识别源码. 水果特征{0,0,1},{0,1,0},{1,0,0}代表{大,圆,光滑}
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -