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

📄 studentview.h

📁 学生管理系统 设置权限 学生管理功能的基本都已经实现
💻 H
字号:
// studentView.h : interface of the CStudentView class
//
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INCLUDES()
#include "commandbutton.h"
#include "HBar.h"	// Added by ClassView
//}}AFX_INCLUDES

#if !defined(AFX_STUDENTVIEW_H__FA69D1A7_59B8_4AFA_92EA_A3AE00CA84EB__INCLUDED_)
#define AFX_STUDENTVIEW_H__FA69D1A7_59B8_4AFA_92EA_A3AE00CA84EB__INCLUDED_

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

#include "ado.h"

class CStudentDoc;
class CHBar;
class CADODatabase;
class CADORecordset;
class CByBysDlg;
class CByClDlg;
class CByJysDlg;
class CCjCxDlg;
class CCjRkDlg;
class CDaCxDlg;
class CDaDjxsDlg;
class CXjDjjcDlg;
class CXjXfxDlg;
class CYhDlg;

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

public:
	//{{AFX_DATA(CStudentView)
	enum { IDD = IDD_STUDENT_FORM };
	CListCtrl	m_listCtrlGN;
	CButton	m_myLog;
	CButton	m_myMenuList;
	CButton	m_formBar;
	CCommandButton	m_B1;
	CCommandButton	m_B2;
	CCommandButton	m_B3;
	CCommandButton	m_B4;
	//}}AFX_DATA

// Attributes
public:
	CStudentDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CStudentView)
	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);
	virtual void CalcWindowRect(LPRECT lpClientRect, UINT nAdjustType = adjustBorder);
	//}}AFX_VIRTUAL

// Implementation
public:
	void StartPrintPreview();
	PVOID PrintDlg;
	UINT PrintOption;
	bool m_IsGNTab[10];
	bool OpenGNDlg(int nID);
	CImageList * imageList;
	CADORecordset * m_recSet;
	CADORecordset * m_recSetTemp;
	CADODatabase * m_conn;
	bool IsInit;
	void RefreshMyBar(int index);
	int m_barIndex;
	CByBysDlg	*m_Dlg_ByBys;
	CByClDlg	*m_Dlg_ByCl;
	CByJysDlg	*m_Dlg_ByJys;
	CCjCxDlg	*m_Dlg_CjCx;
	CCjRkDlg	*m_Dlg_CjRk;
	CDaCxDlg	*m_Dlg_DaCx;
	CDaDjxsDlg	*m_Dlg_DaDjxs;
	CXjDjjcDlg	*m_Dlg_XjDjjc;
	CXjXfxDlg	*m_Dlg_XjXfx;
	CYhDlg		*m_Dlg_Yh;
	
	virtual ~CStudentView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CStudentView)
	afx_msg void OnClickCommandbutton1();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnMouseMoveCommandbutton1(short Button, short Shift, float X, float Y);
	afx_msg void OnMouseMoveCommandbutton2(short Button, short Shift, float X, float Y);
	afx_msg void OnMouseMoveCommandbutton3(short Button, short Shift, float X, float Y);
	afx_msg void OnMouseMoveCommandbutton4(short Button, short Shift, float X, float Y);
	afx_msg void OnMenuByBys();
	afx_msg void OnMenuByCl();
	afx_msg void OnMenuCjCx();
	afx_msg void OnMenuCjRk();
	afx_msg void OnMenuDaCx();
	afx_msg void OnMenuDaDjxs();
	afx_msg void OnMenuXjDjjc();
	afx_msg void OnMenuXjXfx();
	afx_msg void OnMenuYh();
	afx_msg void OnMenuiByJys();
	afx_msg void OnClickListGn(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnClickCommandbutton2();
	afx_msg void OnClickCommandbutton3();
	afx_msg void OnClickCommandbutton4();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	bool IsGNInMenu(UINT nID);
	void CloseAllGNDlg();
	int m_myBarX;
	

};

#ifndef _DEBUG  // debug version in studentView.cpp
inline CStudentDoc* CStudentView::GetDocument()
   { return (CStudentDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_STUDENTVIEW_H__FA69D1A7_59B8_4AFA_92EA_A3AE00CA84EB__INCLUDED_)

⌨️ 快捷键说明

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