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

📄 doc_viewview.h

📁 关于使用VC编程的代码
💻 H
字号:
// Doc_ViewView.h : interface of the CDoc_ViewView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DOC_VIEWVIEW_H__ACCEABE0_A8C6_4FFF_A31A_419475D336B5__INCLUDED_)
#define AFX_DOC_VIEWVIEW_H__ACCEABE0_A8C6_4FFF_A31A_419475D336B5__INCLUDED_

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

#include "pub_def.h"
#include "Person.h"

class CDoc_ViewView : public CFormView
{
protected: // create from serialization only
	CDoc_ViewView();
	DECLARE_DYNCREATE(CDoc_ViewView)

public:
	//{{AFX_DATA(CDoc_ViewView)
	enum { IDD = IDD_DOC_VIEW_FORM };
	int		m_nAge;
	CString	m_strName;
	int		m_nSex;
	CString	m_strSocialNO;
	//}}AFX_DATA

// Attributes
public:
	CDoc_ViewDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDoc_ViewView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

// Implementation
public:
	BOOL RecordExist(CString strSocialNO);
	void GetNewData();
	void ShowNewData();
	virtual ~CDoc_ViewView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CDoc_ViewView)
	afx_msg void OnMoveFirst();
	afx_msg void OnUpdateMoveFirst(CCmdUI* pCmdUI);
	afx_msg void OnMoveLast();
	afx_msg void OnUpdateMoveLast(CCmdUI* pCmdUI);
	afx_msg void OnMoveNext();
	afx_msg void OnUpdateMoveNext(CCmdUI* pCmdUI);
	afx_msg void OnMovePrev();
	afx_msg void OnUpdateMovePrev(CCmdUI* pCmdUI);
	afx_msg void OnRemoveRecord();
	afx_msg void OnUpdateRemoveRecord(CCmdUI* pCmdUI);
	afx_msg void OnAddRecord();
	afx_msg void OnUpdateAddRecord(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	int m_nPersonIndex;
	PersonArray* m_pArray;
};

#ifndef _DEBUG  // debug version in Doc_ViewView.cpp
inline CDoc_ViewDoc* CDoc_ViewView::GetDocument()
   { return (CDoc_ViewDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_DOC_VIEWVIEW_H__ACCEABE0_A8C6_4FFF_A31A_419475D336B5__INCLUDED_)

⌨️ 快捷键说明

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