Canvas->Brush->Color = Color;
//    Canvas->FillRect(Rect); 注释掉这一句,就透明了。下面的bsClear保证写Caption的不使用底色。  
Canvas->Brush->Style = bsClear;  
Canvas
->Font = this->Font;  
FontHeight
= Canvas->TextHeight('W');

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐