-
Notifications
You must be signed in to change notification settings - Fork 0
/
LOGITEXT.H
61 lines (50 loc) · 1.47 KB
/
LOGITEXT.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// LogiText.h - interface for CLogiTextGate and derivatives
//
// Copyright (C) 1993-1994 George Mills and Softronics, Inc. Corporation
// All rights reserved.
//
class CLogiView;
class CLogiDoc;
class CLogiGate;
/////////////////////////////////////////////////////////////////////////////
class CLogiTextGate : public CLogiGate
{
protected:
DECLARE_SERIAL(CLogiTextGate);
CLogiTextGate();
public:
CString Name;
CString m_pTextText;
CString m_pTextArray[17];
CString m_csFileName;
BOOL m_bLoaded;
int m_iStyle;
UINT m_uIndex;
CFont* pOldFont;
CPen* pOldPen;
CBrush* pOldBrush;
CBitmap* pOldBmp;
TEXTMETRIC tm;
LOGFONT lf;
CBitmap* pcbGate;
CLogiTextGate(const CRect& position, const char *name, int ipage, CLogiDoc* pdoc, int iStyle=0, const char *pFileName = "\\NUL", const char *pText="Text");
// Implementation
public:
virtual ~CLogiTextGate();
virtual void Serialize(CArchive& ar);
virtual void Draw(CDC* pDC, CLogiView* pView = NULL);
virtual CLogiObj* Clone(CLogiDoc* pDoc);
virtual void OnOpen(CLogiView* pView);
virtual void Simulate(CLogiDoc* pDoc);
virtual void Animate(CLogiView* pView);
virtual void Initialize(CLogiView* pView, UINT iMode);
virtual void MoveTo(const CRect& position, CLogiView* pView = NULL);
virtual void SetContacts();
virtual BOOL HasText();
virtual CString GetText();
virtual void SetText(LPCTSTR text);
void ResizeRect();
protected:
friend class CRectTool;
}
;