text.h

来自「一个复杂的画图系统」· C头文件 代码 · 共 42 行

H
42
字号
// text.h: interface for the CText class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TEXT_H__26BE5460_39F7_11D4_9B7C_0000B45DD4B6__INCLUDED_)
#define AFX_TEXT_H__26BE5460_39F7_11D4_9B7C_0000B45DD4B6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Shape.h"

class CText : public CShape  
{
public:
	void UpdateProp();
	void changepts(int sel);
	void CalForRot(CPoint &pt);
	void rotate(int rsel,CDC *pDC,CPoint pt, CGeditorView *pView);
	CShape * copys(TCHAR &ch);
	void InitProp();
	void serialfont(CArchive &ar);
	void Serialize(CArchive& ar);
	void invalid(CGeditorView *pView);
	void dragobj(int leash,CDC *pDC,CPoint pt,CGeditorView* pView);
	int InTest(CPoint pt);
	int RotateNoInit;
	LOGFONT tlog;
	CString textstr;
	CPoint pts[4];
	CRect rect;
	int Rotnumber;
	CText();
	CText(LOGFONT &log,CPoint &pt,COLORREF &clr,CString &str);
	void Draw(CDC *pDC);
	virtual ~CText();

};

#endif // !defined(AFX_TEXT_H__26BE5460_39F7_11D4_9B7C_0000B45DD4B6__INCLUDED_)

⌨️ 快捷键说明

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