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

📄 libraryview.h

📁 用MFC写的图书信息管理系统
💻 H
字号:
// libraryView.h : interface of the CLibraryView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_LIBRARYVIEW_H__10F1B3B2_0D3D_4EFA_9133_C835069C1B86__INCLUDED_)
#define AFX_LIBRARYVIEW_H__10F1B3B2_0D3D_4EFA_9133_C835069C1B86__INCLUDED_

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

#include "mainclass.h"
#include "ReaderDlg.h"
class CReaderDlg;

#include "BookDlg.h"
class CBookDlg;

#include "borrowDlg.h"
class CBorrowDlg;

#include "returnbookDlg.h"
class CReturnBookDlg;

#include "LibraryDoc.h"
class CLibraryDoc;

#define DESTROY_READER_DLG   WM_USER+100
#define DESTROY_BOOK_DLG     WM_USER+101
#define DESTROY_BORROW_DLG   WM_USER+102
#define DESTROY_RETURN_DLG   WM_USER+105

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

// Attributes
public:
	CLibraryDoc* GetDocument();
public:
	RDatabase rdb;
	BDatabase bdb;
	int ireader;
	int ibook;
	CReaderDlg *pReaderDlg;
	CBookDlg*  pBookDlg;
	CBorrowDlg* pBorrowDlg;
	CReturnBookDlg* pReturnDlg;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLibraryView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	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 OnReaderManage();
	afx_msg void OnDestroyReaderDlg();
	afx_msg void OnDestroyBookDlg();
	afx_msg void OnDestroyBorrowDlg();
	afx_msg void OnDestroyReturnDlg();
	afx_msg void OnBookManage();
	afx_msg void OnBorrowBook();
	afx_msg void OnReturnBook();
	//}}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__10F1B3B2_0D3D_4EFA_9133_C835069C1B86__INCLUDED_)

⌨️ 快捷键说明

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