libraryview.h

来自「用MFC写的图书信息管理系统」· C头文件 代码 · 共 102 行

H
102
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?