menu2view.h

来自「vc++教程代码,完整的vc++代码,学习必备,大家共享,有问题请联系我」· C头文件 代码 · 共 77 行

H
77
字号
// Menu2View.h : interface of the CMenu2View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MENU2VIEW_H__AA85F3C0_59B7_4B69_B10A_261CD823DBEF__INCLUDED_)
#define AFX_MENU2VIEW_H__AA85F3C0_59B7_4B69_B10A_261CD823DBEF__INCLUDED_

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

#include "Menu2Doc.h"
class CMenu2View : public CView
{
protected: // create from serialization only
	CMenu2View();
	DECLARE_DYNCREATE(CMenu2View)

// Attributes
public:
	CMenu2Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMenu2View)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMenu2View)
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	
	//}}AFX_MSG
	afx_msg void OnPhone1();
	afx_msg void OnPhone2();
	afx_msg void OnPhone3();
	afx_msg void OnPhone4();
	DECLARE_MESSAGE_MAP()
private:
	CString m_strLine;
	CMenu m_menu;
	int m_nIndex;
};

#ifndef _DEBUG  // debug version in Menu2View.cpp
inline CMenu2Doc* CMenu2View::GetDocument()
   { return (CMenu2Doc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MENU2VIEW_H__AA85F3C0_59B7_4B69_B10A_261CD823DBEF__INCLUDED_)

⌨️ 快捷键说明

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