📄 rentdvddlg.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -