所有者绘制按钮的优点和用途 [英] advantages and uses of owner drawn button

查看:67
本文介绍了所有者绘制按钮的优点和用途的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要所有者绘制按钮的优点和用途

i need the advantages and uses of owner drawn button

推荐答案

明显的优点是您可以使其显示(如果可以的话) )随便你.
关于用途,例如,如果您需要一个椭圆形按钮,而系统没有提供它,那么您必须创建一个所有者绘制的按钮.
The obvious advantage is that you can make it appear (if you''re able to do so) whatever you like.
As about the uses, if you need, for instance, an oval button and the system doesn''t provide it, then you have to create an owner drawn button.


两个答案(CPallini和阿尔伯特·奥尔金(Albert Holguin)完美.如果您需要一些示例,可以查看此链接 [
Both answers (CPallini and Albert Holguin) are perfect. If you want some samples, you could take a look at this link[^] where lots of button control samples appear.

Hope this helps.


优点:
-使按钮看起来完全符合您想要的方式(任何颜色,形状和包括任何位图).
-如果您的框架没有您想要的或需要的东西,请自己制作按钮.

缺点:
-您必须自己完全绘制按钮,包括任何过渡状态和/或启用/禁用按钮.
Advantages:
- Make a button look exactly the way you want (any color, shape, and include any bitmaps).
- Make your own buttons in a case where your framework doesn''t have what you want or need.

Disadvantage:
- You have to draw out the button completely yourself, this includes any transition states and/or enabling/disabling the button.


这篇关于所有者绘制按钮的优点和用途的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆