TBSTYLE_FLAT 和 TBSTYLE_TRANSPARENT

关于TBSTYLE_FLAT 和 TBSTYLE_TRANSPARENT,MSDN上有云:

TBSTYLE_FLAT  
Version 4.70. Creates a flat toolbar. In a flat toolbar, both the toolbar and the buttons are transparent and hot-tracking is enabled. Button text appears under button bitmaps. To prevent repainting problems, this style should be set before the toolbar control becomes visible.
TBSTYLE_TRANSPARENT  
Version 4.71. Creates a transparent toolbar. In a transparent toolbar, the toolbar is transparent but the buttons are not. Button text appears under button bitmaps. To prevent repainting problems, this style should be set before the toolbar control becomes visible.

看意思应该是使用 TBSTYLE_FLAT 时toolbar 和 buttons都透明,而使用 TBSTYLE_TRANSPARENT toolbar透明而而buttons不透明,如果这样理解的话,需要 toolbar透明而buttons不透明时应该使用 TBSTYLE_TRANSPARENT ,需要两者都透明的话,则使用 TBSTYLE_FLAT ,两者同时使用是完全没有必要而且会造成意义模糊的。
但事实是这样的的吗?NO。事实是要创建一个透明的工具条,需要同时使用 TBSTYLE_FLAT TBSTYLE_TRANSPARENT 风格,只用TBSTYLE_FLAT风格创建的 toolbar 将包含不透明的 buttons 。这样的话应该是, 使用 TBSTYLE_FLAT 时toolbar 透明而buttons不透明(同MSDN对 TBSTYLE_TRANSPARENT 的解释),而使用 TBSTYLE_TRANSPARENT 时应该是 toolbar不透明而buttons透明,这样的话两者同时使用达到透明的效果就讲的通了。

但是正确的答案究竟是什么呢?还是不能够确定。:(
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值