[推薦]CLabel–超強CStatic靜態框

來源:互聯網
上載者:User

昨天從CodeProject上發現一非常強的CStatic擴充類,本來想自己做一個這樣的擴充類,不過發現這個之後,呵呵,我就不用做了
功能很多,運行效果如

 

提供的功能介面:
 virtual CLabel& SetBkColor(COLORREF crBkgnd, COLORREF crBkgndHigh = 0, BackFillMode mode = Normal);
 virtual CLabel& SetTextColor(COLORREF crText);
 virtual CLabel& SetText(const CString& strText);
 virtual CLabel& SetFontBold(BOOL bBold);
 virtual CLabel& SetFontName(const CString& strFont, BYTE byCharSet = ANSI_CHARSET);
 virtual CLabel& SetFontUnderline(BOOL bSet);
 virtual CLabel& SetFontItalic(BOOL bSet);
 virtual CLabel& SetFontSize(int nSize);
 virtual CLabel& SetSunken(BOOL bSet);
 virtual CLabel& SetBorder(BOOL bSet);
 virtual CLabel& SetTransparent(BOOL bSet);
 virtual CLabel& FlashText(BOOL bActivate);
 virtual CLabel& FlashBackground(BOOL bActivate);
 virtual CLabel& SetLink(BOOL bLink,BOOL bNotifyParent);
 virtual CLabel& SetLinkCursor(HCURSOR hCursor);
 virtual CLabel& SetFont3D(BOOL bSet,Type3D type=Raised);
 virtual CLabel& SetRotationAngle(UINT nAngle,BOOL bRotation);
 virtual CLabel& SetText3DHiliteColor(COLORREF cr3DHiliteColor);
 virtual CLabel& SetFont(LOGFONT lf);
 virtual CLabel& SetMailLink(BOOL bEnable, BOOL bNotifyParent);
 virtual CLabel& SetHyperLink(const CString& sLink);

可以看到它支援設定背景顏色,字型顏色,字型,透明背景,連結,3D……

在CodeProject上的地址是http://www.codeproject.com/staticctrl/clabel.asp
本來想測試一下csdn的檔案上傳功能呢,發現還是不能用,

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.