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

📄 ddtext.h

📁 赤壁之战(游戏原码)
💻 H
字号:
/////////////////////////
// 	CDDString.h	:	v0010
//	Written by 	:	Li	Haijun
//	Compiler	:	Microsoft Visual C++ 4.0
//	v0010		:	Aug.21.1996
/////////////////////////
// to show a sting
/////////////////////////////////////////////////////////////////////////////
// CDDString class

#ifndef __DDTEXT_H__
#define __DDTEXT_H__

#include	"stdafx.h"


////////////////////////////////////////////////////////////////////
// to declear a class to show a string at the special place and color

class	CDDString
{
	//	data member of this class
public :
	BOOL		m_bIsUse ;			// to flag whether this instance is in used
	BOOL		m_bName ;			// TRUE -> this text instance store a players name 
									//	#define	MAX_NAME_LETTER			9

private :
	int			m_dwX, m_dwY ;		// the position of this text instance on the surface
	COLORREF	m_TextColor ;		// the color of this text instance
	char		m_cString[ NETWORK_MAX_MESSAGE_LETTER+1+2+MAX_NAME_LETTER ] ;			// the string of this text to show

public :
	CDDString() ;
	~CDDString() ;

	void	SetPos( int x, int y ) ;
	int		GetPosX( void ) ;
	int		GetPosY( void ) ;

	void	SetColor( COLORREF color ) ;
	COLORREF GetColor( void ) ;

	void	SetString( LPCSTR string ) ;
	BOOL	GetString( LPSTR  string ) ;

	void	ToEmpty( void ) ;

	void	Blit( void ) ;

};

///////////////////////////////////////////////////////////////
// to declear some function to operate the array of this class
void	FACE_DeleteAllText() ;

#endif		//	__DDTEXT_H__

⌨️ 快捷键说明

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