📄 dlginfostatis.cpp
字号:
// DlgInfoStatis.cpp : implementation file
//
#include "stdafx.h"
#include "Demo_airline.h"
#include "DlgInfoStatis.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDlgInfoStatis property page
IMPLEMENT_DYNCREATE(CDlgInfoStatis, CPropertyPage)
CDlgInfoStatis::CDlgInfoStatis() : CPropertyPage(CDlgInfoStatis::IDD)
{
//{{AFX_DATA_INIT(CDlgInfoStatis)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
CDlgInfoStatis::~CDlgInfoStatis()
{
}
void CDlgInfoStatis::DoDataExchange(CDataExchange* pDX)
{
CPropertyPage::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlgInfoStatis)
DDX_Control(pDX, IDC_LIST1, m_list);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDlgInfoStatis, CPropertyPage)
//{{AFX_MSG_MAP(CDlgInfoStatis)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDlgInfoStatis message handlers
BOOL CDlgInfoStatis::OnInitDialog()
{
CPropertyPage::OnInitDialog();
DWORD dwStyle = GetWindowLong(m_list.GetSafeHwnd(),GWL_STYLE);
dwStyle |= LVS_REPORT;
SetWindowLong(m_list.GetSafeHwnd(),GWL_STYLE,dwStyle);
m_list.SetExtendedStyle(LVS_EX_GRIDLINES | LVS_EX_TRACKSELECT);
CRect rectList;
m_list.GetClientRect(&rectList);
m_list.InsertColumn(0,"会议编号",LVCFMT_CENTER,rectList.Width()/6);
m_list.InsertColumn(1,"会议名称",LVCFMT_CENTER,rectList.Width()/6);
m_list.InsertColumn(2,"类别",LVCFMT_CENTER,rectList.Width()/6);
m_list.InsertColumn(3,"应到人数",LVCFMT_CENTER,rectList.Width()/6);
m_list.InsertColumn(4,"签到人数",LVCFMT_CENTER,rectList.Width()/6);
m_list.InsertColumn(5,"比例",LVCFMT_CENTER,rectList.Width()/6);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -