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

📄 sdbview.h

📁 用Visual C++实现关系数据库的图形编程.
💻 H
字号:
// SDBView.h : interface of the CSDBView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_SDBVIEW_H__7787FEE0_01B9_473A_802C_8215A950C819__INCLUDED_)
#define AFX_SDBVIEW_H__7787FEE0_01B9_473A_802C_8215A950C819__INCLUDED_

#include "ADOSQL.h"	// Added by ClassView
#include "ADOConn.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CSDBView : public CView
{
protected: // create from serialization only
	CSDBView();
	DECLARE_DYNCREATE(CSDBView)

// Attributes
public:
	CSDBDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSDBView)
	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:
	BOOL m_Stop;
	int m_Del;                  //删除类型标志,1,2,3分别代表圆形,三角形,矩形点元
	                            //5,6,7代表直线,弧线,矩形线元
	_RecordsetPtr m_Rst;
	char s[20];
	int m_Edit;
	int Y[10];
	int X[10];
	int m_nStep;
	int m_nStartX,m_nStartY,m_nMidX,m_nMidY,m_nEndX,m_nEndY;     //记录点坐标
	int m_Drag;         //删除标志
	ADOConn m_ado;  
	BOOL m_OpenDB;        //打开数据库
	COLORREF m_Color;     
	ADOSQL sp;                
	int flag;                //标明类型,1,2,3代表点元,5,6,7代表线元 ,9代表面元,10表示编辑点元
	int m_Refesh;            //刷新次数
	virtual ~CSDBView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CSDBView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnPointCircle();
	afx_msg void OnPointRectangle();
	afx_msg void OnPointTriangle();
	afx_msg void OnSetColor();
	afx_msg void OnReadDB();
	afx_msg void OnDelPoint();
	afx_msg void OnDrawLine();
	afx_msg void OnLineCircle();
	afx_msg void OnLineRectangle();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnReadLineEntity();
	afx_msg void OnEditPointentity();
	afx_msg void OnDelLine();
	afx_msg void OnDelCircle();
	afx_msg void OnDelLineEntity();
	afx_msg void OnDelRectline();
	afx_msg void OnDelArc();
	afx_msg void OnDelRect();
	afx_msg void OnDelTriangle();
	afx_msg void OnPloyline();
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMakearea();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in SDBView.cpp
inline CSDBDoc* CSDBView::GetDocument()
   { return (CSDBDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_SDBVIEW_H__7787FEE0_01B9_473A_802C_8215A950C819__INCLUDED_)

⌨️ 快捷键说明

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