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

📄 stringinfoview.cpp

📁 网络游戏魔域源代码 测试可以完整变异
💻 CPP
字号:
// StringInfoView.cpp: implementation of the CStringInfoView class.
//
//////////////////////////////////////////////////////////////////////

#include "StringInfoView.h"
#include "ND_BITMAP.h"

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

CStringInfoView::CStringInfoView()
{
	
}

CStringInfoView::~CStringInfoView()
{
	
}


//-------------------------------------------------------------------
CStringInfoView* CStringInfoView::CreateNew(char* pszStr, CMyPos posShow, DWORD dwColor)
{
	// char string
	CStringInfoView* pView = new CStringInfoView;
	MYASSERT(pView);
	if(pView->Create(pszStr, posShow, dwColor))
		return pView;
	SAFE_DELETE(pView);
	return NULL;
}
//-------------------------------------------------------------------
void CStringInfoView::Show()
{
	CMyBitmap::ShowString(m_posShow.x, m_posShow.y, m_dwColor, m_szStr);
}

//-------------------------------------------------------------------
BOOL CStringInfoView::Create(char* pszStr, CMyPos posShow, DWORD dwColor)
{
	if(!pszStr || strlen(pszStr) >= _MAX_STRING)
		return false;
	strcpy(m_szStr, pszStr);
	m_posShow.x	= 	posShow.x;
	m_posShow.y	= 	posShow.y;
	m_dwColor = dwColor;
	return true;
}
//-------------------------------------------------------------------

⌨️ 快捷键说明

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