kmtview.h

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

H
88
字号
// KMTView.h : interface of the CKMTView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_KMTVIEW_H__D42480C4_DB16_49D7_B9BD_E0777706EA2E__INCLUDED_)
#define AFX_KMTVIEW_H__D42480C4_DB16_49D7_B9BD_E0777706EA2E__INCLUDED_

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


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

// Attributes
public:
	CKMTDoc* GetDocument();

// Operations
public:

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

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CKMTView)
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnBeginAutoOutput();
	afx_msg void OnUpdateBeginAutoOutput(CCmdUI* pCmdUI);
	afx_msg void OnEndAutoOutput();
	afx_msg void OnUpdateEndAutoOutput(CCmdUI* pCmdUI);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnDrawLine();
	afx_msg void OnDrawPolygron();
	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 void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnClearAll();
	afx_msg void OnDrawCircle();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int m_nColIndex;
	int m_nRowIndex;
	int m_nAutoCount;
	BOOL m_bAutoOutput;
	BOOL m_bPoly;
	BOOL m_bFirstPoint;
	CPoint m_OrgPoint;
	CPoint m_PrevPoint;
	CPoint m_NextPoint;
};

#ifndef _DEBUG  // debug version in KMTView.cpp
inline CKMTDoc* CKMTView::GetDocument()
   { return (CKMTDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_KMTVIEW_H__D42480C4_DB16_49D7_B9BD_E0777706EA2E__INCLUDED_)

⌨️ 快捷键说明

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