⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tcolortx.h

📁 BORLAND公司C语言对话框开发程序
💻 H
字号:
#if defined( Uses_TColoredText ) && !defined( __TColoredText )
#define __TColoredText

class far TRect;

class TColoredText : public TStaticText
{

public:

    TColoredText( const TRect& bounds, const char *aText, ushort attribute );

    virtual void draw();
    virtual ushort getTheColor();

protected:

    ushort attr;

private:

    virtual const char *streamableName() const
	{ return name; }

protected:

    TColoredText( StreamableInit );
    virtual void write( opstream& );
    virtual void *read( ipstream& );

public:

    static const char * const near name;
    static TStreamable *build();

};

inline ipstream& operator >> ( ipstream& is, TColoredText& cl )
    { return is >> (TStreamable&)cl; }
inline ipstream& operator >> ( ipstream& is, TColoredText*& cl )
    { return is >> (void *&)cl; }

inline opstream& operator << ( opstream& os, TColoredText& cl )
    { return os << (TStreamable&)cl; }
inline opstream& operator << ( opstream& os, TColoredText* cl )
    { return os << (TStreamable *)cl; }

#endif  // Uses_TColoredText

⌨️ 快捷键说明

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