文件名称: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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Label.h
Label.cpp
www.dssz.com.txt
Label.cpp
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.