如何绘制Windows 7任务栏(如阴影按钮) [英] How to draw Windows 7 taskbar like Shaded Buttons

查看:77
本文介绍了如何绘制Windows 7任务栏(如阴影按钮)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 7任务栏按钮绘制在阴影背景上.鼠标悬停在按钮上方时,颜色会产生某种反应.

Windows 7 taskbar buttons are drawn on a shaded background. The color shade somehow reacts on where the mouse is over the button.

我想在我的应用程序中使用这样的按钮.我该怎么办?

I'd like to use such buttons in my application. How can i do that ?

推荐答案

该效果称为色彩热跟踪".似乎没有专用的API.开发者博客对此:

The effect is called "Color Hot-track". It does not seem that there is a dedicated API for that. There are some notes in a developer blog about it:

我通过类似的操作从Rudi Grobler找到了一些源代码:

I found some source code from Rudi Grobler though doing a similar thing:

使您的WPF按钮成为热门颜色!

这篇关于如何绘制Windows 7任务栏(如阴影按钮)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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