windowedit.h

来自「骨骼动画....把魔兽模型解出的代码..」· C头文件 代码 · 共 74 行

H
74
字号
//+-----------------------------------------------------------------------------
//| Inclusion guard
//+-----------------------------------------------------------------------------
#ifndef MAGOS_WINDOW_EDIT_H
#define MAGOS_WINDOW_EDIT_H


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


//+-----------------------------------------------------------------------------
//| Window edit info structure
//+-----------------------------------------------------------------------------
struct WINDOW_EDIT_INFO
{
	WINDOW_EDIT_INFO()
	{
		Text = "";

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

		HorizontalScroll = FALSE;
		VerticalScroll = FALSE;
		Multiline = FALSE;
		ReadOnly = FALSE;

		Parent = NULL;
		Style = 0;
	}

	std::string Text;

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

	BOOL HorizontalScroll;
	BOOL VerticalScroll;
	BOOL Multiline;
	BOOL ReadOnly;

	HWND Parent;
	DWORD Style;
};


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

		virtual BOOL Create(CONST WINDOW_EDIT_INFO& NewEditInfo);

	protected:
		WINDOW_EDIT_INFO EditInfo;
};


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

⌨️ 快捷键说明

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