📄 reinforce.cpp
字号:
// reinforce.cpp : implementation file
//
#include "stdafx.h"
#include "图书馆管理系统.h"
#include "reinforce.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// reinforce dialog
reinforce::reinforce(CWnd* pParent /*=NULL*/)
: CDialog(reinforce::IDD, pParent)
{
//{{AFX_DATA_INIT(reinforce)
m_bookname = _T("");
m_booknum = _T("");
m_author = _T("");
m_newnum = _T("");
m_press = _T("");
//}}AFX_DATA_INIT
}
void reinforce::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(reinforce)
DDX_Text(pDX, IDC_BOOKNAME, m_bookname);
DDX_Text(pDX, IDC_BOOKNUM, m_booknum);
DDX_Text(pDX, IDC_BOOKWR, m_author);
DDX_Text(pDX, IDC_NEWNUM, m_newnum);
DDX_Text(pDX, IDC_PUBLISH, m_press);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(reinforce, CDialog)
//{{AFX_MSG_MAP(reinforce)
ON_BN_CLICKED(IDD_ABOUTBOX5, OnAboutbox5)
ON_BN_CLICKED(IDD_ABOUTBOX4, OnAboutbox4)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// reinforce message handlers
void reinforce::OnAboutbox5()
{
// TODO: Add your control notification handler code here
CDialog::OnCancel();
}
void reinforce::OnAboutbox4()
{
// TODO: Add your control notification handler code here
UpdateData(1);
CFile write;
CString temp;
temp = m_booknum + '#' + m_bookname + '#' + m_author + '#' + m_press +'#' +m_newnum+'~';
write.Open("BookStore\\BookStore.txt",CFile::modeWrite|CFile::modeNoTruncate);
write.SeekToEnd();
write.Write(temp,temp.GetLength());
MessageBox("Success!");
write.Close();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -