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

📄 myhelloview.h

📁 经典C++书籍钱能C++书籍例子代码实例
💻 H
字号:
// MyHelloView.h : interface of the CMyHelloView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYHELLOVIEW_H__F67329AD_518D_11D7_829C_C8CB72F94C47__INCLUDED_)
#define AFX_MYHELLOVIEW_H__F67329AD_518D_11D7_829C_C8CB72F94C47__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "PasswordDialog.h"

const WM_USERMSG = WM_USER + 100;

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

// Attributes
public:
	CMyHelloDoc* GetDocument();

// Operations
public:
	
	CPasswordDialog* m_pModallessDlg;
	void OnMyFunction();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMyHelloView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	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 ~CMyHelloView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
   int m_nLine;
   CString m_strDisplay;
   CString m_MousePoint;
// Generated message map functions
protected:
	//{{AFX_MSG(CMyHelloView)
	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 OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnDestroy();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnNomodalless();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in MyHelloView.cpp
inline CMyHelloDoc* CMyHelloView::GetDocument()
   { return (CMyHelloDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MYHELLOVIEW_H__F67329AD_518D_11D7_829C_C8CB72F94C47__INCLUDED_)

⌨️ 快捷键说明

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