general_classview.h

来自「关于使用VC编程的代码」· C头文件 代码 · 共 83 行

H
83
字号
// General_ClassView.h : interface of the CGeneral_ClassView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_GENERAL_CLASSVIEW_H__2390E7FA_F4BA_45CB_8801_CCB638EC5E62__INCLUDED_)
#define AFX_GENERAL_CLASSVIEW_H__2390E7FA_F4BA_45CB_8801_CCB638EC5E62__INCLUDED_

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

#include "afxtempl.h"

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

// Attributes
public:
	CGeneral_ClassDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGeneral_ClassView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CGeneral_ClassView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnSetDefaultRect();
	afx_msg void OnRecordBegin();
	afx_msg void OnUpdateRecordBegin(CCmdUI* pCmdUI);
	afx_msg void OnRecordEnd();
	afx_msg void OnUpdateRecordEnd(CCmdUI* pCmdUI);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CRect m_Rect;
	BOOL  m_bDrag;
	CPoint m_PrevPoint;

	int m_nIndex;
	BOOL m_bRecord;
	CArray<CPoint,CPoint> m_PointArray;
	CList<CTime,CTime> m_TimeList;
	CMapStringToString m_Map;
};

#ifndef _DEBUG  // debug version in General_ClassView.cpp
inline CGeneral_ClassDoc* CGeneral_ClassView::GetDocument()
   { return (CGeneral_ClassDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_GENERAL_CLASSVIEW_H__2390E7FA_F4BA_45CB_8801_CCB638EC5E62__INCLUDED_)

⌨️ 快捷键说明

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