vc06view.h

来自「Visual C++ 6.0编程基础与范例」· C头文件 代码 · 共 82 行

H
82
字号
// vc06View.h : interface of the CVc06View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_VC06VIEW_H__31EEB1AF_01A3_11D3_A012_0060085A8930__INCLUDED_)
#define AFX_VC06VIEW_H__31EEB1AF_01A3_11D3_A012_0060085A8930__INCLUDED_

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


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

private:
	int x1,y1;
	int x2,y2;
	int x3,y3;
	int x4,y4;
	int x5,y5;
	CRect m_rect;
   	BOOL  m_chord;
    BOOL  m_pattern;

// Attributes
public:
	CVc06Doc* GetDocument();

// Operations
public:

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

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CVc06View)
	afx_msg void OnUpdatePattern(CCmdUI* pCmdUI);
	afx_msg void OnUpdateChord(CCmdUI* pCmdUI);
	afx_msg void OnButton32773();
	afx_msg void OnUpdateButton32773(CCmdUI* pCmdUI);
	afx_msg void OnButton32774();
	afx_msg void OnUpdateButton32774(CCmdUI* pCmdUI);
	afx_msg void OnButton32775();
	afx_msg void OnUpdateButton32775(CCmdUI* pCmdUI);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in vc06View.cpp
inline CVc06Doc* CVc06View::GetDocument()
   { return (CVc06Doc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_VC06VIEW_H__31EEB1AF_01A3_11D3_A012_0060085A8930__INCLUDED_)

⌨️ 快捷键说明

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