文件名称:label
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
一个可以改变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-A static text box can change the font, size, color, class enum FlashType (None, Text, Background) class CLabel: public CStatic (//Constructionpublic: CLabel () CLabel 相关搜索: CStatic
CLabel
label
Font
LOGFONT
Access
static
font
color
in
label
box
change
font
size
of
radio
button
mfc
source
code
CFont
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-A static text box can change the font, size, color, class enum FlashType (None, Text, Background) class CLabel: public CStatic (//Constructionpublic: CLabel () CLabel 相关搜索: CStatic
CLabel
label
Font
LOGFONT
Access
static
font
color
in
label
box
change
font
size
of
radio
button
mfc
source
code
CFont
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Label.cpp
Label.h
Label.h