databaseview.h

来自「1.通过鼠标拖拽和弹出对话框完成实体、属性、联系的绘制以及各参数设定 2.对绘」· C头文件 代码 · 共 86 行

H
86
字号
// databaseView.h : interface of the CDatabaseView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DATABASEVIEW_H__6D5FE0D6_6910_4205_8C0C_2A673F25E3B2__INCLUDED_)
#define AFX_DATABASEVIEW_H__6D5FE0D6_6910_4205_8C0C_2A673F25E3B2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


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

// Attributes
public:
	CDatabaseDoc* GetDocument();

// Operations
public:
	CPoint* p1;
	CPoint* p2;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDatabaseView)
	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:
	virtual ~CDatabaseView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CDatabaseView)
	afx_msg void OnLButtonDown(UINT nFlags , CPoint Point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags , CPoint Point);
	afx_msg void OnResize();
	afx_msg void OnRelation2();
	afx_msg void OnRelation1();
	afx_msg void OnEntity2();
	afx_msg void OnEntity1();
	afx_msg void OnDelete();
	afx_msg void OnAttribute1();
	afx_msg void OnAttribute2();
	afx_msg void OnAttribute3();
	afx_msg void OnChange();
	afx_msg void OnRename();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnPop();
	//}}AFX_MSG
	
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in databaseView.cpp
inline CDatabaseDoc* CDatabaseView::GetDocument()
   { return (CDatabaseDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_DATABASEVIEW_H__6D5FE0D6_6910_4205_8C0C_2A673F25E3B2__INCLUDED_)

⌨️ 快捷键说明

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