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

📄 pointtestview.h

📁 此程序实现了类似protel电路画图程序。
💻 H
字号:
// PointtestView.h : interface of the CPointtestView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_POINTTESTVIEW_H__37927A0D_613E_11D4_BBD7_600000000ECD__INCLUDED_)
#define AFX_POINTTESTVIEW_H__37927A0D_613E_11D4_BBD7_600000000ECD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//class CElist;
#include "nodelist.h"
#include "textlist.h"
class CBaseTool;
class CPointtestDoc;
class CPointtestView : public CView
{
protected: // create from serialization only
	CPointtestView();
	DECLARE_DYNCREATE(CPointtestView)

// Attributes
public:
	CPointtestDoc* GetDocument();
	void ToolBox(UINT nID);
	void CreateBlankBitmap();
	void DrawCompanySign(CDC * pp, int xx, int yy);
	BOOL CheckIFCorrect();
	void Close();
public:
	int Operation_id;
	CElist *	m_pList;
	CPointList* m_ppointlist;
	CLineList* m_pLineList;
	CTextList* m_pTextList;
	CBaseTool *     m_pBaseTool;
	CNodeList* m_pNodeList;
	UINT id_Check;
// Operations
public:
	
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPointtestView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CPointtestView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CPointtestView)
	afx_msg void OnSelect();//选择功能
	afx_msg void OnResistance();//放置电阻
	afx_msg void OnRheostat();//放置变阻器
	afx_msg void OnPoint();//放置节点
	afx_msg void OnCapacitance();//放置电容
	afx_msg void OnDiode();//放置二极管
	afx_msg void OnGround();//放置接地
	afx_msg void OnInductance();//放置电感
	afx_msg void OnSwitch();//放置开关
	afx_msg void OnPower();//放置电源
	afx_msg void OnVoltage();//放置电压表
	afx_msg void OnCurrent();//放置电流表
	afx_msg void OnLight();//放置灯泡
	afx_msg void OnHGrip();//水平对齐
	afx_msg void OnVGrip();//垂直对齐
	afx_msg void OnAntiClockWise();//顺时针
	afx_msg void OnSeaZil();//逆时针
	afx_msg void OnGogo();//逆时针
	afx_msg void OnText();//放置文档
	afx_msg void OnCalculate();
	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 OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnUpdateDian(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDi(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDeng(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDddz(CCmdUI* pCmdUI);
	afx_msg void OnUpdateCap(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDianzu(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDianyuan(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDianyabiao(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDianliubiao(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDiangan(CCmdUI* pCmdUI);
	afx_msg void OnUpdateErjiguan(CCmdUI* pCmdUI);
	afx_msg void OnUpdateSelectone(CCmdUI* pCmdUI);
	afx_msg void OnUpdateTexta(CCmdUI* pCmdUI);
	afx_msg void OnUpdateKetiaodianzu(CCmdUI* pCmdUI);
	afx_msg void OnLookmeter();
	//}}AFX_MSG
	afx_msg LONG OnPleaseCopy(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in PointtestView.cpp
inline CPointtestDoc* CPointtestView::GetDocument()
   { return (CPointtestDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_POINTTESTVIEW_H__37927A0D_613E_11D4_BBD7_600000000ECD__INCLUDED_)

⌨️ 快捷键说明

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