📄 readerdlg.cpp
字号:
// ReaderDlg.cpp : implementation file
//
#include "stdafx.h"
#include "book.h"
#include "ReaderDlg.h"
#include "InquireBookDlg.h"
#include "IReaderDlg.h"
#include "ILendDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CReaderDlg dialog
CReaderDlg::CReaderDlg(CWnd* pParent /*=NULL*/)
: CDialog(CReaderDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CReaderDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CReaderDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CReaderDlg)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CReaderDlg, CDialog)
//{{AFX_MSG_MAP(CReaderDlg)
ON_BN_CLICKED(IDC_InquireBook, OnInquireBook)
ON_BN_CLICKED(IDC_BUTTON2, OnIReader)
ON_BN_CLICKED(IDC_BUTTON3, OnLend)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CReaderDlg message handlers
/*函数功能:打开查询图书的对话框,以便查询所需的图书资料*/
void CReaderDlg::OnInquireBook()
{
// TODO: Add your control notification handler code here
CInquireBookDlg dlg; //打开图书查询的对话框
dlg.DoModal();
}
/*函数功能:打开查询读者对话框*/
void CReaderDlg::OnIReader()
{
// TODO: Add your control notification handler code here
CIReaderDlg dlg;
dlg.DoModal();
}
/*函数功能:打开查询借阅资料的对话框*/
void CReaderDlg::OnLend()
{
// TODO: Add your control notification handler code here
CILendDlg dlg;
dlg.DoModal();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -