huanying.cpp

来自「用Visual c++写」· C++ 代码 · 共 70 行

CPP
70
字号
// HuanYing.cpp : implementation file
//

#include "stdafx.h"
#include "mining.h"
#include "HuanYing.h"
#include "XuanZe.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CHuanYing dialog


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


void CHuanYing::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CHuanYing)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CHuanYing, CDialog)
	//{{AFX_MSG_MAP(CHuanYing)
	ON_WM_CREATE()
	ON_WM_TIMER()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CHuanYing message handlers

int CHuanYing::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	if (CDialog::OnCreate(lpCreateStruct) == -1)
		return -1;
	SetTimer(1,2000,NULL);
	
	
	// TODO: Add your specialized creation code here
	
	return 0;
}

void CHuanYing::OnTimer(UINT nIDEvent) 
{
	// TODO: Add your message handler code here and/or call default
	KillTimer(1);
	
 	EndDialog(0);
	CXuanZe	dlgXuanZe;
	dlgXuanZe.DoModal();
	CDialog::OnTimer(nIDEvent);
	
}

⌨️ 快捷键说明

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