📄 dao_example2view.h
字号:
// DAO_EXAMPLE2View.h : interface of the CDAO_EXAMPLE2View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_DAO_EXAMPLE2VIEW_H__1764FC74_A7D9_4036_97CD_B4F57882AB1D__INCLUDED_)
#define AFX_DAO_EXAMPLE2VIEW_H__1764FC74_A7D9_4036_97CD_B4F57882AB1D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "StudentInformation.h"
class CDAO_EXAMPLE2View : public CListView
{
protected: // create from serialization only
CDAO_EXAMPLE2View();
DECLARE_DYNCREATE(CDAO_EXAMPLE2View)
// Attributes
public:
CDAO_EXAMPLE2Doc* GetDocument();
// Operations
public:
//Add code
void ShowStudentInformation();
CStudentInformation *m_exp1;
CStudentInformation *m_exp2;
bool m_flag2;
int UserAffirm();
int Manage();
CDaoDatabase pDatabase;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDAO_EXAMPLE2View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CDAO_EXAMPLE2View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CDAO_EXAMPLE2View)
afx_msg void OnAddRecord();
afx_msg void OnDeleteRecord();
afx_msg void OnUpdateDeleteRecord(CCmdUI* pCmdUI);
afx_msg void OnModifyRecord();
afx_msg void OnUpdateModifyRecord(CCmdUI* pCmdUI);
afx_msg void OnSearchRecord();
afx_msg void OnAddUser();
afx_msg void OnDeleteUser();
afx_msg void OnPasswordModify();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in DAO_EXAMPLE2View.cpp
inline CDAO_EXAMPLE2Doc* CDAO_EXAMPLE2View::GetDocument()
{ return (CDAO_EXAMPLE2Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DAO_EXAMPLE2VIEW_H__1764FC74_A7D9_4036_97CD_B4F57882AB1D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -