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

📄 addborrowerdlg.cpp

📁 管理员登录功能;读者借阅模块;读者归还模块;书籍信息模块
💻 CPP
字号:
// AddBorrowerDlg.cpp : implementation file
//

#include "stdafx.h"
#include "db.h"
#include "AddBorrowerDlg.h"
#include "ADOConn.h"
#import "c:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","adoEOF") rename("BOF","adoBOF")
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAddBorrowerDlg dialog


CAddBorrowerDlg::CAddBorrowerDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CAddBorrowerDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CAddBorrowerDlg)
	m_sBorrowerName = _T("");
	m_sBorrowerID = _T("");
	//}}AFX_DATA_INIT
}


void CAddBorrowerDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAddBorrowerDlg)
	DDX_Text(pDX, IDC_BORROWERNAME, m_sBorrowerName);
	DDX_Text(pDX, IDC_BORRWERID, m_sBorrowerID);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAddBorrowerDlg, CDialog)
	//{{AFX_MSG_MAP(CAddBorrowerDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAddBorrowerDlg message handlers

CString CAddBorrowerDlg::GetBorrowerName()
{
	return m_sBorrowerName;

}

CString CAddBorrowerDlg::GetBorrowerID()
{
	return m_sBorrowerID;
}

void CAddBorrowerDlg::SetBorrowerID(CString sBorrowerID)
{
	m_sBorrowerID=sBorrowerID;
}

void CAddBorrowerDlg::SetBorrowerName(CString sBorrowerName)
{
	m_sBorrowerName=sBorrowerName;
}


BOOL CAddBorrowerDlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	SetWindowText(m_strTitle);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
void CAddBorrowerDlg::SetTitle(CString strTitle)
{
	m_strTitle = strTitle;
}

⌨️ 快捷键说明

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