menu5view.h

来自「基于菜单的编程」· C头文件 代码 · 共 77 行

H
77
字号
// Menu5View.h : interface of the CMenu5View class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MENU5VIEW_H__302B81CE_9149_41FC_9174_E1F705EFFFEF__INCLUDED_)
#define AFX_MENU5VIEW_H__302B81CE_9149_41FC_9174_E1F705EFFFEF__INCLUDED_

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


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

// Attributes
public:
	CMenu5Doc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMenu5View)
	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 ~CMenu5View();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

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

#ifndef _DEBUG  // debug version in Menu5View.cpp
inline CMenu5Doc* CMenu5View::GetDocument()
   { return (CMenu5Doc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MENU5VIEW_H__302B81CE_9149_41FC_9174_E1F705EFFFEF__INCLUDED_)

⌨️ 快捷键说明

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