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

📄 windowbutton.h

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


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


//+-----------------------------------------------------------------------------
//| Enumeration of the button types
//+-----------------------------------------------------------------------------
enum BUTTON_TYPE
{
	BUTTON_TYPE_PUSHBUTTON,
	BUTTON_TYPE_CHECKBOX,
	BUTTON_TYPE_CHECKBOX_3STATE,
	BUTTON_TYPE_RADIOBUTTON,
};


//+-----------------------------------------------------------------------------
//| Window button info structure
//+-----------------------------------------------------------------------------
struct WINDOW_BUTTON_INFO
{
	WINDOW_BUTTON_INFO()
	{
		Text = "";

		X = 0;
		Y = 0;
		Width = 100;
		Height = 28;

		ButtonType = BUTTON_TYPE_PUSHBUTTON;

		Parent = NULL;
		Style = WS_CHILD | WS_CLIPSIBLINGS | WS_VISIBLE;
	}

	std::string Text;

	INT X;
	INT Y;
	INT Width;
	INT Height;

	BUTTON_TYPE ButtonType;

	HWND Parent;
	DWORD Style;
};


//+-----------------------------------------------------------------------------
//| Window button class
//+-----------------------------------------------------------------------------
class WINDOW_BUTTON : public WINDOW
{
	public:
		CONSTRUCTOR WINDOW_BUTTON();
		DESTRUCTOR ~WINDOW_BUTTON();

		virtual BOOL Create(CONST WINDOW_BUTTON_INFO& NewButtonInfo);

	protected:
		WINDOW_BUTTON_INFO ButtonInfo;
};


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

⌨️ 快捷键说明

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