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

📄 dlgsequency.cpp

📁 一个完整的彩票软件的源代码
💻 CPP
字号:
// DlgSequency.cpp : implementation file
//

#include "stdafx.h"
#include "lottery.h"
#include "DlgSequency.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgSequency dialog


CDlgSequency::CDlgSequency(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgSequency::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgSequency)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


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


BEGIN_MESSAGE_MAP(CDlgSequency, CDialog)
	//{{AFX_MSG_MAP(CDlgSequency)
	ON_WM_SIZE()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgSequency message handlers

BOOL CDlgSequency::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_isFilled=FALSE;
	m_list.InsertColumn(0,"期号",LVCFMT_LEFT,60);
	m_list.InsertColumn(1,"-1",LVCFMT_LEFT,80);
	m_list.InsertColumn(2,"-2",LVCFMT_LEFT,80);
	m_list.InsertColumn(3,"-3",LVCFMT_LEFT,80);
	m_list.InsertColumn(4,"-4",LVCFMT_LEFT,80);
	m_list.InsertColumn(5,"-5",LVCFMT_LEFT,80);
	m_list.InsertColumn(6,"-6",LVCFMT_LEFT,80);
	DWORD style=m_list.GetExtendedStyle();
	style |=(LVS_EX_FULLROWSELECT|LVS_EX_FLATSB|LVS_EX_GRIDLINES|LVS_EX_HEADERDRAGDROP|LVS_EX_ONECLICKACTIVATE);
	m_list.SetExtendedStyle(style);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CDlgSequency::OnSize(UINT nType, int cx, int cy) 
{
	CDialog::OnSize(nType, cx, cy);
	
	if (m_list.m_hWnd)
	{
		m_list.MoveWindow(0,0,cx,cy);
		for (int i=1; i<7; i++)
		{
			m_list.SetColumnWidth(i,(cx-60)/6);
		}
	}
}

⌨️ 快捷键说明

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