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

📄 dlgabsentlist.cpp

📁 航空公司简单考勤系统:主要运用指纹管理深圳航空公司的会议签到管理系统
💻 CPP
字号:
// DlgAbsentList.cpp : implementation file
//

#include "stdafx.h"
#include "Demo_airline.h"
#include "DlgAbsentList.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgAbsentList property page

IMPLEMENT_DYNCREATE(CDlgAbsentList, CPropertyPage)

CDlgAbsentList::CDlgAbsentList() : CPropertyPage(CDlgAbsentList::IDD)
{
	//{{AFX_DATA_INIT(CDlgAbsentList)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}

CDlgAbsentList::~CDlgAbsentList()
{
}

void CDlgAbsentList::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgAbsentList)
	DDX_Control(pDX, IDC_LIST1, m_list);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgAbsentList, CPropertyPage)
	//{{AFX_MSG_MAP(CDlgAbsentList)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgAbsentList message handlers

BOOL CDlgAbsentList::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()/5);	
	m_list.InsertColumn(1,"姓名",LVCFMT_CENTER,rectList.Width()/5);	
	m_list.InsertColumn(2,"性别",LVCFMT_CENTER,rectList.Width()/5);	
	m_list.InsertColumn(3,"职务",LVCFMT_CENTER,rectList.Width()/5);	
	m_list.InsertColumn(4,"部门",LVCFMT_CENTER,rectList.Width()/5);	

	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 + -