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

📄 libraryview.h

📁 图书管理系统,数据结构思想,用 C++编写,经测试,可用
💻 H
字号:
// LibraryView.h : interface of the CLibraryView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_LIBRARYVIEW_H__AFEB4BD6_DCBE_4D4E_94F6_1F93875FF5D7__INCLUDED_)
#define AFX_LIBRARYVIEW_H__AFEB4BD6_DCBE_4D4E_94F6_1F93875FF5D7__INCLUDED_

#include "UserSet.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "LoginDlg.h"
#include "ManageDlg.h"
#include "UserDlg.h"
#include "BookDlg.h"
#include "BorrowDlg.h"
#include "ReturnDlg.h"
#include "BookSet.h"	// Added by ClassView
#include "ManagerSet.h"	// Added by ClassView
#include "BorrowSet.h"	// Added by ClassView

class CLibraryView : public CRecordView
{
protected: // create from serialization only
	CLibraryView();
	DECLARE_DYNCREATE(CLibraryView)

public:
	//{{AFX_DATA(CLibraryView)
	enum { IDD = IDD_LIBRARY_FORM };
	CTabCtrl	m_tabCtrl;
	CListCtrl	m_ListView;
	CUserSet* m_pSet;
	//}}AFX_DATA

// Attributes
public:
	CLibraryDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLibraryView)
	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);
	//}}AFX_VIRTUAL

// Implementation
public:
	CString m_ManagerName;
	void SaveLogoutTime();
	void InitBorrowShow();
	void InitManagerShow();
	void InitUserShow();
	void InitBookShow();
	int nYear;
	int nMonth;
	int nDay;
	int nSum;        //纪录总数
	int nCur;        //当前纪录
	CString m_ManagerID;
	void BorrowShow();
	void ManagerShow();
	void UserShow();
	void BookShow();
	int m_nCol;      //纪录浏览列表的列数
	void ListShow();
	void InitListView();
	CBorrowSet m_BorrowSet;
	CManagerSet m_ManagerSet;
	CUserSet m_UserSet;
	CBookSet m_BookSet;
	virtual ~CLibraryView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CLibraryView)
	afx_msg void OnAppExit();
	afx_msg void OnBookBorrow();
	afx_msg void OnBookManage();
	afx_msg void OnBookReturn();
	afx_msg void OnLogout();
	afx_msg void OnManagerManage();
	afx_msg void OnUserManage();
	afx_msg void OnPaint();
	afx_msg void OnClickListView(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSelchangeSelectTab(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDestroy();
	afx_msg void OnMoveFirst();
	afx_msg void OnMovePrev();
	afx_msg void OnMoveNext();
	afx_msg void OnMoveLast();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in LibraryView.cpp
inline CLibraryDoc* CLibraryView::GetDocument()
   { return (CLibraryDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_LIBRARYVIEW_H__AFEB4BD6_DCBE_4D4E_94F6_1F93875FF5D7__INCLUDED_)

⌨️ 快捷键说明

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