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

📄 enterbook.cpp

📁 本软件为车站售票服务,能够提供查询班次,预定座位,取消预定等功能
💻 CPP
字号:
// EnterBook.cpp : implementation file
//

#include "stdafx.h"
#include "System.h"
#include "EnterBook.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// EnterBook dialog


EnterBook::EnterBook(CWnd* pParent /*=NULL*/)
	: CDialog(EnterBook::IDD, pParent)
{
	//{{AFX_DATA_INIT(EnterBook)
	m_bID = _T("");
	m_bseatID = 1;
	m_bName = _T("");
	m_bID="320681";
	//}}AFX_DATA_INIT
}


void EnterBook::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(EnterBook)
	DDX_Control(pDX, IDC_bLine, m_Bline);
	DDX_Text(pDX, IDC_bID, m_bID);
	DDX_Text(pDX, IDC_bSeat, m_bseatID);
	DDX_Text(pDX, IDC_bName, m_bName);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(EnterBook, CDialog)
	//{{AFX_MSG_MAP(EnterBook)
	ON_BN_CLICKED(IDC_bOK, OnbOK)
	ON_CBN_SELCHANGE(IDC_bLine, OnSelchangebLine)
	ON_BN_CLICKED(IDC_bCancel, OnbCancel)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// EnterBook message handlers

BOOL EnterBook::OnInitDialog() 
{
	CDialog::OnInitDialog();
	int Index;
	Index = m_Bline.AddString("101·");	
	m_Bline.SetItemData(Index,0);
	Index = m_Bline.AddString("10·");	
	m_Bline.SetItemData(Index,1);
	Index = m_Bline.AddString("121·");	
	m_Bline.SetItemData(Index,2);
	Index =m_Bline.AddString("159·");	
	m_Bline.SetItemData(Index,3);
	Index = m_Bline.AddString("193·");	
	m_Bline.SetItemData(Index,4);
	Index = m_Bline.AddString("43·");	
	m_Bline.SetItemData(Index,5);
	Index = m_Bline.AddString("45·");	
	m_Bline.SetItemData(Index,6);
	Index = m_Bline.AddString("53·");	
	m_Bline.SetItemData(Index,7);
	Index = m_Bline.AddString("67·");	
	m_Bline.SetItemData(Index,8);
	Index = m_Bline.AddString("93·");	
	m_Bline.SetItemData(Index,9);	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void EnterBook::OnbOK() 
{
	CDialog::OnOK();	
}

void EnterBook::OnSelchangebLine() 
{
     Index=m_Bline.GetCurSel(); 	
}

void EnterBook::OnbCancel() 
{
	CDialog::OnCancel();	
}

⌨️ 快捷键说明

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