XP Visual Styles渐变填充的标签背景,有局限性吗? [英] XP Visual Styles gradient fill of tab backgrounds, limitations?

查看:54
本文介绍了XP Visual Styles渐变填充的标签背景,有局限性吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows XP和Visual Studio 2008上使用Win32 API.我有一个使用XP Visual Styles的程序.我们有相当大的选项卡式对话框(想想Visual Studio IDE的选项卡式界面).

当标签属性页变得过大(主要是高度),XP的视觉样式的渐变填充停止,你可以看到一个明显的分界点梯度停在那里,并留下特殊照顾与标签的底部其余属性页为纯色.

这种视觉风格有什么限制吗?如果是这样,是否有一种方法可以自定义绘图并解决此问题?以前从未做过自定义绘制控件,因此,如果我必须走那条路线,将对您有所帮助...:confused:

谢谢,

I''m using the Win32 API on Windows XP with Visual Studio 2008. I have a program that uses XP Visual Styles. We have tabbed dialogs that are rather large (think Visual Studio IDE tabbed interface).

When the tab property page gets too large (mainly in height), the gradient fill of the XP Visual Styles stops and you can see an obvious cutoff point where the gradient stops and you''re left with the remainder of the bottom of the tab property page a solid color.

Is there some limitation to this visual style? If so, is there a way to custom draw and work around this? Never done a custom drawn control before, so any help there would be appreciated, if I have to go that route...:confused:

Thanks,

推荐答案

,您需要根据主题dll的DrawThemeBackground API对其进行绘制.
you need to draw it per the DrawThemeBackground API of the theme dll.


这篇关于XP Visual Styles渐变填充的标签背景,有局限性吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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