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

📄 mousedemo1view.h

📁 < VC++编程宝典>>配套源代码, 对于想精通VC++的朋友很有帮助!
💻 H
字号:
// MouseDemo1View.h : interface of the CMouseDemo1View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MOUSEDEMO1VIEW_H__DEAFBAEC_0E31_11D1_813A_0020AF337325__INCLUDED_)
#define AFX_MOUSEDEMO1VIEW_H__DEAFBAEC_0E31_11D1_813A_0020AF337325__INCLUDED_

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

#define MOUSE_SHOWINFO 0
#define MOUSE_SHOWGRID 1

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

// Attributes
public:
	CMouseDemo1Doc* GetDocument();

	void ShowMouseInfo( const char *, CPoint, int nFlag = -1 );
	int m_nInfoMode;
	int m_nGrid[10][10];

// Operations
public:

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

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMouseDemo1View)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnFileMouseGriddisplay();
	afx_msg void OnUpdateFileMouseGriddisplay(CCmdUI* pCmdUI);
	afx_msg void OnFileMousePositioninformation();
	afx_msg void OnUpdateFileMousePositioninformation(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in MouseDemo1View.cpp
inline CMouseDemo1Doc* CMouseDemo1View::GetDocument()
   { return (CMouseDemo1Doc*)m_pDocument; }
#endif

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MOUSEDEMO1VIEW_H__DEAFBAEC_0E31_11D1_813A_0020AF337325__INCLUDED_)

⌨️ 快捷键说明

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