continue.cpp

来自「推箱子游戏源码」· C++ 代码 · 共 62 行

CPP
62
字号
// Continue.cpp : implementation file
//

#include "stdafx.h"
#include "TestMfc.h"
#include "Continue.h"

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

/////////////////////////////////////////////////////////////////////////////
// CContinue dialog


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


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


BEGIN_MESSAGE_MAP(CContinue, CDialog)
	//{{AFX_MSG_MAP(CContinue)
	ON_BN_CLICKED(IDREPLAY, OnReplay)
	ON_BN_CLICKED(IDC_NEXT, OnNext)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CContinue message handlers

void CContinue::OnReplay() 
{
	// TODO: Add your control notification handler code here
	next=0;
	CDialog::OnOK();
}

void CContinue::OnNext() 
{
	// TODO: Add your control notification handler code here
	/*
	((CTestMfcView*)::AfxGetMainWnd())->NextGame();*/
	next=1;
	CDialog::OnOK();
	
}

⌨️ 快捷键说明

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