Welcome![Sign In][Sign Up]
Location:
Search - Access static font color in label box

Search list

[Button controllabel

Description: 一个可以改变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
Platform: | Size: 2048 | Author: sunrise | Hits:

CodeBus www.codebus.net