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

📄 booksafe.cpp

📁 一个用VC编写的MFC界面的图书管理系统
💻 CPP
字号:
// BOOKSAFE.cpp : implementation file
//

#include "stdafx.h"
#include "lib.h"
#include "BOOKSAFE.h"
#include "DO.h"
#include "DO2.h"
#include "DO3.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// BOOKSAFE dialog


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


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


BEGIN_MESSAGE_MAP(BOOKSAFE, CDialog)
	//{{AFX_MSG_MAP(BOOKSAFE)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
	ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
	ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
	ON_BN_CLICKED(IDC_BUTTON5, OnButton5)
	ON_BN_CLICKED(IDC_BUTTON6, OnButton6)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// BOOKSAFE message handlers
void BOOKSAFE::OnButton1() 
{     
	  choice=11;
	  DO  me4;
      UpdateData(FALSE);
	  me4.m_edit1="你选择的操作是:1.新增";
	  me4.m_edit2="请输入读者编号:";
	  me4.m_edit3="请输入读者姓名:";
	  me4.DoModal();	 
}

void BOOKSAFE::OnButton2() 
{     choice=12;
	  DO me5;
      UpdateData(FALSE);
	  me5.m_edit1="你选择的操作是:2.更改";
	  me5.m_edit2="请输入读者编号:";
	  me5.DoModal();
}

void BOOKSAFE::OnButton3() 
{     
	  choice=13;
	  DO2 me5;
      UpdateData(FALSE);
	  me5.m_edit21="你选择的操作是:3.删除";
	  me5.m_edit22="请输入读者编号:";
	  me5.DoModal();	
	
}

void BOOKSAFE::OnButton4() 
{
	  choice=14;	  
	  DO2 me5;
      UpdateData(FALSE);
	  me5.m_edit21="你选择的操作是:4.查找";
	  me5.m_edit22="请输入读者编号:";
	  me5.DoModal();	
	
}
void BOOKSAFE::OnButton5() 
{
	  choice=15;
	  DO3 me6;
      UpdateData(FALSE);
	  me6.m_edit31="你选择的操作是:5.显示(请点击确定按钮)";
	  me6.DoModal();
}

void BOOKSAFE::OnButton6() 
{
	  choice=16;
	  DO2 me5;
      UpdateData(FALSE);
	  me5.m_edit21="警告!!!你选择的操作是:6.全删";
	  me5.m_edit22="在下面输入“ok”确认操作!";
	  me5.DoModal();		
}

⌨️ 快捷键说明

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