opguide.cpp

来自「象棋框架」· C++ 代码 · 共 54 行

CPP
54
字号
// OpGuide.cpp: implementation of the COpGuide class.
//
//////////////////////////////////////////////////////////////////////

#include "OpGuide.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

COpGuide::COpGuide()
{
	m_bFullScr = true;
	m_nStrID = IDS_HELP_OPGUIDE;
	m_nTopTextID = IDS_HELP_OPGUIDETOP;
	m_nBGID = 0;	//不要背景
}

COpGuide::~COpGuide()
{

}

void COpGuide::GetMainRect(AEERect& rt)
{
	CBrewLoginCanvasBase::GetMainRect(rt);
	if(m_bFullScr)
		return;
	AEERect rttmp;
	GetTopBarRect(rttmp);
	rt.y += rttmp.dy + 10;
	rt.dy -= 2 * (rttmp.dy + 3);
	rt.x += 6;
	rt.dx -= 12;
}

void COpGuide::paint(IDisplay *d, IGraphics *g)
{
	if(!m_bFullScr)
	{
		IDISPLAY_SetColor(d ,CLR_USER_TEXT, RGB_WHITE);
		IDISPLAY_SetColor(d,CLR_USER_BACKGROUND, RGB_BLACK);
		AEERect rt;
		GetMainRect(rt);
		IDISPLAY_FillRect(d,&rt,RGB_BLACK);
	}
	CGameIntro::paint(d,g);
	if(!m_bFullScr)
	{
		IDISPLAY_SetColor(d ,CLR_USER_TEXT, RGB_BLACK);
		IDISPLAY_SetColor(d,CLR_USER_BACKGROUND, RGB_WHITE);
	}
}

⌨️ 快捷键说明

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