summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2DlgItemText.h
blob: 6c85cfa28cc8e09b81fd656a5b43299431c9ff64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once
#include "common.h"
#include "T2DlgItem.h"

class AFX_CLASS_EXPORT T2DlgItemText : public T2DlgItem {
public:
	T2DlgItemText(T2TowerDoc* inDoc, T2ImageObj* inImageObj, CPalette* inPalette);
	virtual void GetDescriptor(CString&) const;
	virtual void SetDescriptor(const CString&);
	void SetTextColor(COLORREF);
	void InfoDialogMessage(CString&, long);

protected:
	virtual BOOL OnT2DlgItemEraseBkgnd(CDC*);
	virtual void OnT2Timer(UINT);
	char GetJustification() const;
	void GetContentText(CString&) const;

	BOOL mHasTextColor;
	COLORREF mTextColor;
	CString mPreviousString;
	UINT mTimerID;
};