📄 studentinfoview.h
字号:
// StudentInfoView.h : interface of the CStudentInfoView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_STUDENTINFOVIEW_H__83EE1BF1_A415_472B_9188_9452CB5728B4__INCLUDED_)
#define AFX_STUDENTINFOVIEW_H__83EE1BF1_A415_472B_9188_9452CB5728B4__INCLUDED_
#include "ADO.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "StudentInfoDoc.h"
class CStudentInfoView : public CFormView
{
protected: // create from serialization only
CStudentInfoView();
DECLARE_DYNCREATE(CStudentInfoView)
public:
//{{AFX_DATA(CStudentInfoView)
enum { IDD = IDD_STUDENTINFO_FORM };
CComboBox m_ComSex;
CListCtrl m_listInfo;
CString m_eStudentID;
CString m_eStudentName;
//}}AFX_DATA
// Attributes
public:
CStudentInfoDoc * GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStudentInfoView)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
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);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CStudentInfoView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CStudentInfoView)
afx_msg void OnDestroy();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnPaint();
afx_msg void OnRefresh();
afx_msg void OnAdd();
afx_msg void OnModify();
afx_msg void OnDelete();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
BOOL m_bExist;
_RecordsetPtr m_pResult;
CADO m_pConn;
BOOL m_bFirstTime;
};
#ifndef _DEBUG // debug version in StudentInfoView.cpp
inline CStudentInfoDoc* CStudentInfoView::GetDocument()
{ return (CStudentInfoDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STUDENTINFOVIEW_H__83EE1BF1_A415_472B_9188_9452CB5728B4__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -