📄 static.h
字号:
//--------------------------------------------------
// Desc: Static Text
// Date: 2006.11.16 /update
// Author: artsylee
//
// Copyright (C) 2006 artsylee
//
//--------------------------------------------------
#ifndef _STATIC_
#define _STATIC_
#include "Window.h"
#include "../Core/Font.h"
class ASE_DLL GStatic : public CWindow
{
public:
GStatic(CWindow* pParent = NULL);
virtual ~GStatic();
virtual void Render();
virtual DWORD ProcessEvent();
virtual bool LoadFromIni(char* pfilename, char* pIndex);
void SetCaption(const char *szCaption);
void GetCaption(char *szCaption);
bool IsLeft(void) { return m_bLeft; }
void SetLeft(bool c) { m_bLeft = c; }
GRect GetFontRect() { return m_rcSrc; }
protected:
CSimFont m_Font;
bool m_bLeft;
};
class ASE_DLL MLStatic : public CWindow
{
public:
MLStatic(CWindow* pParent = NULL);
virtual ~MLStatic();
virtual void Render();
virtual DWORD ProcessEvent();
virtual bool LoadFromIni(char* pfilename, char* pIndex);
void SetCaption(const char *szCaption);
void GetCaption(char *szCaption);
GFont* GetFont(void);
GRect GetFontRect();
protected:
GFont m_Font;
char m_szInfo[4096];
};
#endif // _STATIC_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -