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

📄 predlg.cpp

📁 一个彩民的神器
💻 CPP
字号:
// predlg.cpp : implementation file
//

#include "stdafx.h"
#include "体彩.h"
#include "predlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// Cpredlg dialog


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


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


BEGIN_MESSAGE_MAP(Cpredlg, CDialog)
	//{{AFX_MSG_MAP(Cpredlg)
	ON_BN_CLICKED(IDC_baocun, Onbaocun)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Cpredlg message handlers

BOOL Cpredlg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
for(int i=0;i<10;i++)
	m_list.AddString(shistring[i]);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void Cpredlg::Onbaocun() 
{
ofstream out("baocun.txt");
CString string="                 ****************************************";
out<<string<<"\n";
for(int i=0;i<10;i++)
out<<"                "<<shistring[i]<<"\n";
out<<string;	
}

⌨️ 快捷键说明

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