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

📄 book.cpp

📁 本源码为图书管理系统
💻 CPP
字号:
// BOOK.cpp : implementation file
//

#include "stdafx.h"
#include "TSG.h"
#include "BOOK.h"
#include "B_INF.h"
#include "PERSON.h"
#include "BORROW.h"
#include "Pawmod.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// BOOK dialog


BOOK::BOOK(CWnd* pParent /*=NULL*/)
	: CDialog(BOOK::IDD, pParent)
{
	//{{AFX_DATA_INIT(BOOK)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void BOOK::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(BOOK)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(BOOK, CDialog)
	//{{AFX_MSG_MAP(BOOK)
	ON_BN_CLICKED(IDC_BOOK, OnBook)
	ON_BN_CLICKED(IDC_BUTTONPERSON, OnButtonperson)
	ON_BN_CLICKED(IDC_BORROW, OnBorrow)
	ON_BN_CLICKED(IDC_PSWMOD, OnPswmod)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// BOOK message handlers

void BOOK::OnBook() 
{
	B_INF B;
	m_database.Close();
	B.DoModal();
	// TODO: Add your control notification handler code here
	
}

void BOOK::OnButtonperson() 
{   PERSON P;
    m_database.Close(); 
    P.DoModal();
	// TODO: Add your control notification handler code here
	
}

void BOOK::OnBorrow() 
{   BORROW q;
    m_database.Close(); 
    q.DoModal();
	// TODO: Add your control notification handler code here
	
}

void BOOK::OnPswmod() 
{   Pawmod m_modpswd;
	m_database.Close();
	m_modpswd.user.Format("%s",user);
	m_modpswd.m_database.Open(_T("TSG"));
	m_modpswd.DoModal()	;
	// TODO: Add your control notification handler code here
	
}

⌨️ 快捷键说明

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