文件名称:label
介绍说明--下载内容均来自于网络,请自行研究使用
一个可以改变static文本框字体、大小、颜色的类
enum FlashType {None, Text, Background }
class CLabel : public CStatic
{
// Construction
public:
CLabel()
CLabel& SetBkColor(COLORREF crBkgnd)
CLabel& SetTextColor(COLORREF crText)
CLabel& SetText(const CString& strText)
CLabel& SetFontBold(BOOL bBold)
CLabel& SetFontName(const CString& strFont)
CLabel& SetFontUnderline(BOOL bSet)
CLabel& SetFontItalic(BOOL bSet)
CLabel& SetFontSize(int nSize)
CLabel& SetSunken(BOOL bSet)
CLabel& SetBorder(BOOL bSet)
CLabel& FlashText(BOOL bActivate)
CLabel& FlashBackground(BOOL bActivate)
CLabel& SetLink(BOOL bLink)
CLabel& SetLinkCursor(HCURSOR hCursor)
// Attributes
public:
protected:
void ReconstructFont()
COLORREF m_crText
HBRUSH m_hBrush
HBRUSH m_hwndBrush
LOGFONT m_lf
CFont m_font
CString m_strText
BOOL m_bState
BOOL m_bTimer
BOOL m_bLink
FlashType m_Type
HCURSOR m_hCursor
// Operations
enum FlashType {None, Text, Background }
class CLabel : public CStatic
{
// Construction
public:
CLabel()
CLabel& SetBkColor(COLORREF crBkgnd)
CLabel& SetTextColor(COLORREF crText)
CLabel& SetText(const CString& strText)
CLabel& SetFontBold(BOOL bBold)
CLabel& SetFontName(const CString& strFont)
CLabel& SetFontUnderline(BOOL bSet)
CLabel& SetFontItalic(BOOL bSet)
CLabel& SetFontSize(int nSize)
CLabel& SetSunken(BOOL bSet)
CLabel& SetBorder(BOOL bSet)
CLabel& FlashText(BOOL bActivate)
CLabel& FlashBackground(BOOL bActivate)
CLabel& SetLink(BOOL bLink)
CLabel& SetLinkCursor(HCURSOR hCursor)
// Attributes
public:
protected:
void ReconstructFont()
COLORREF m_crText
HBRUSH m_hBrush
HBRUSH m_hwndBrush
LOGFONT m_lf
CFont m_font
CString m_strText
BOOL m_bState
BOOL m_bTimer
BOOL m_bLink
FlashType m_Type
HCURSOR m_hCursor
// Operations
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 1985511label.rar 列表 Label.h Label.cpp