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

📄 windowcoloredtextdialog.h

📁 骨骼动画....把魔兽模型解出的代码..
💻 H
字号:
//+-----------------------------------------------------------------------------
//| Inclusion guard
//+-----------------------------------------------------------------------------
#ifndef MAGOS_WINDOW_COLORED_TEXT_DIALOG_H
#define MAGOS_WINDOW_COLORED_TEXT_DIALOG_H


//+-----------------------------------------------------------------------------
//| Included files
//+-----------------------------------------------------------------------------
#include "WindowDialog.h"


//+-----------------------------------------------------------------------------
//| Colored text dialog window class
//+-----------------------------------------------------------------------------
class WINDOW_COLORED_TEXT_DIALOG : public WINDOW_DIALOG
{
	public:
		CONSTRUCTOR WINDOW_COLORED_TEXT_DIALOG();
		DESTRUCTOR ~WINDOW_COLORED_TEXT_DIALOG();

		BOOL Display(HWND ParentWindow) CONST;

	protected:
		static BOOL ColorizeSolidText(std::string& Text);
		static BOOL ColorizeGradientText(std::string& Text);

		static std::string ColorToString(D3DCOLOR Color);
		static std::string NumberToString(INT Number);
		static CHAR DecToHex(INT Number);
		static D3DCOLOR InterpolateColor(INT Index, INT Size);

		static BOOL CALLBACK DialogMessageHandler(HWND Window, UINT Message, WPARAM W, LPARAM L);

		static BOOL Gradient;
		static D3DCOLOR Color1;
		static D3DCOLOR Color2;
};


//+-----------------------------------------------------------------------------
//| Global objects
//+-----------------------------------------------------------------------------
extern WINDOW_COLORED_TEXT_DIALOG ColoredTextDialog;


//+-----------------------------------------------------------------------------
//| End of inclusion guard
//+-----------------------------------------------------------------------------
#endif

⌨️ 快捷键说明

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