c++ builder 改变状态栏字体颜色等样式
void __fastcall TForMain::stat1DrawPanel(TStatusBar *StatusBar, TStatusPanel *Panel, const TRect &Rect) { TCanvas *pCanvas=stat1->Canvas; pCanvas->Font->Color=clGreen; pCanvas->Font->Style=TFontStyles()<<fsUnderline;//设置字体样式为下划线 AnsiString str="http://www.cnblogs.com/zhangdongsheng/"; pCanvas->TextOut(Rect.left+20,Rect.top+1,str); }
本博客注有“转”字样的为转载文章,其余为本人原创文章,转载请务必注明出处或保存此段。c++/lua/windows逆向交流群:69148232