📄 student2view.h
字号:
// student2View.h : interface of the CStudent2View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_STUDENT2VIEW_H__1D8E6C09_CF25_4508_AF7E_4CB51C4E6F79__INCLUDED_)
#define AFX_STUDENT2VIEW_H__1D8E6C09_CF25_4508_AF7E_4CB51C4E6F79__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "datagrid.h"
class CStudent2Set;
class CStudent2View : public CRecordView
{
protected: // create from serialization only
CStudent2View();
DECLARE_DYNCREATE(CStudent2View)
public:
//{{AFX_DATA(CStudent2View)
enum { IDD = IDD_STUDENT2_FORM };
CEdit m_show;
CTreeCtrl m_tcTest;
CStudent2Set* m_pSet;
CString m_StrQuery;
CString m_score;
CString m_scorno;
CString m_xueyuan1;
CString m_deptname1;
CString m_stuname;
CString m_stuno;
CString m_zzmm;
CString m_dhhm;
CString m_jtzz;
//}}AFX_DATA
// Attributes
public:
CStudent2Doc* GetDocument();
void InitTreeList();
void OnExecute();
// Operations
public:
_ConnectionPtr m_Connection;
_RecordsetPtr m_Recordset;
CDataGrid m_DataGrid;
CString m_strSQL;
CString m_name;
CString m_stuid;
CString m_sex;
int m_chengji;
int m_xuefen;
CString m_xueyuan;
CString m_deptname;
CString m_class;
int m_banjino;
CString m_political;
CString m_address;
CString m_tel;
CString m_birthday;
HTREEITEM hItem;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CStudent2View)
public:
virtual CRecordset* OnGetRecordset();
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 BOOL OnCommand(WPARAM wParam, LPARAM lParam);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
int m_delflag;
int m_flag;
virtual ~CStudent2View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CStudent2View)
afx_msg void OnBUTTONView();
afx_msg void OnRecAdd();
afx_msg void OnRecEdit();
afx_msg void OnRecDel();
afx_msg void OnBUTTONFind();
afx_msg void OnBUTTONFinddel();
afx_msg void OnButtonExit();
afx_msg void OnSelchangedTree(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnMouseDownDatagrid(short Button, short Shift, long X, long Y);
afx_msg void OnButtonSort();
afx_msg void OnButtonEntry();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in student2View.cpp
inline CStudent2Doc* CStudent2View::GetDocument()
{ return (CStudent2Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STUDENT2VIEW_H__1D8E6C09_CF25_4508_AF7E_4CB51C4E6F79__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -