rentdvddlg.cpp

来自「这是一个影碟租借系统,它调用了数据库,可实现影碟的租借及自动增减影碟数量.」· C++ 代码 · 共 68 行

CPP
68
字号
// RentDVDDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Rent.h"
#include "RentDVDDlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CRentDVDDlg dialog


CRentDVDDlg::CRentDVDDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CRentDVDDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CRentDVDDlg)
	m_name = _T("");
	//}}AFX_DATA_INIT
}


void CRentDVDDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CRentDVDDlg)
	DDX_Control(pDX, IDC_EDIT_NAME, m_editName);
	DDX_Control(pDX, IDC_DATETIMEPICKER_RENT, m_DateTimeRent);
	DDX_Control(pDX, IDC_LIST_DVD, m_DVDInfoList);
	DDX_Text(pDX, IDC_EDIT_NAME, m_name);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CRentDVDDlg, CDialog)
	//{{AFX_MSG_MAP(CRentDVDDlg)
	ON_BN_CLICKED(IDC_BUTTON_QUERY, OnButtonQuery)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CRentDVDDlg message handlers

BOOL CRentDVDDlg::OnInitDialog()
{
	CDialog::OnInitDialog();
	m_DVDInfoList.InsertColumn(0,"ID",LVCFMT_LEFT,90,-1);
    m_DVDInfoList.InsertColumn(1,"影碟",LVCFMT_LEFT,90,-1);
    m_DVDInfoList.InsertColumn(2,"目前数量",LVCFMT_LEFT,90,-1);
	m_DVDInfoList.InsertColumn(3,"内容描述",LVCFMT_LEFT,90,-1);
    m_DVDInfoList.SetExtendedStyle(LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES);


	
	return TRUE;  // return TRUE  unless you set the focus to a control

}

void CRentDVDDlg::OnButtonQuery() 
{
	// TODO: Add your control notification handler code here
	
}

⌨️ 快捷键说明

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