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

📄 result.cpp

📁 本人自己写的一个游戏源代码:神奇读心术!
💻 CPP
字号:
// Result.cpp : implementation file
//

#include "stdafx.h"
#include "magic.h"
#include "Result.h"
#include "magicdlg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CResult dialog

CResult::CResult(CWnd* pParent /*=NULL*/)
	: CDialog(CResult::IDD, pParent)
{
	//{{AFX_DATA_INIT(CResult)
		// NOTE: the ClassWizard will add member initialization here
	m_web.SetHyperlink("www.gamedevelop.net");
	//}}AFX_DATA_INIT
}


void CResult::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CResult)
	DDX_Control(pDX, IDC_WEB, m_web);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CResult, CDialog)
	//{{AFX_MSG_MAP(CResult)
	ON_WM_PAINT()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CResult message handlers

void CResult::OnPaint() 
{
	CPaintDC dc(this); // device context for painting
	
	// TODO: Add your message handler code here
	dc.TextOut(25,5,"你刚才注视了5秒的图形是:");
	LOGFONT lf;
	ZeroMemory(&lf,sizeof(lf));
	lstrcpy(lf.lfFaceName,"宋体");
	lf.lfHeight=50;
	CFont f;
	f.CreateFontIndirect(&lf);
	CFont *old = dc.SelectObject(&f);
	dc.TextOut(120,35,m_Result);
	DeleteObject(old);
	// Do not call CDialog::OnPaint() for painting messages
}

⌨️ 快捷键说明

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