在哪里可以找到Windows 7 UX指南中推荐的图标/动画? [英] Where do I find the icons / animations recommended in the Windows 7 UX guide?

查看:172
本文介绍了在哪里可以找到Windows 7 UX指南中推荐的图标/动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 7 UX指南有很好的插图和图标示例,但我真的无法在SDK中找到它们。它们是隐藏在某个地方还是不可用?

The Windows 7 UX guide has nice illustrations and examples of icons, but I really can't find them in the SDK. Are they hiding somewhere, or are they not available ?

推荐答案

如果您正在谈论常见的UI图标,那么您应该以编程方式获取它们。例如,您可以使用

If you are talking about the common UI icons, then you are supposed to get them programmatically. For instance, you can use

var
  errIcon: HICON;
begin
  errIcon := LoadIcon(0, IDI_ERROR);
  DrawIcon(Canvas.Handle, 10, 10, errIcon),

(德尔福代码)绘制错误图标。

(Delphi code) to draw an error icon.

Windows UI标准图标http://privat.rejbrand.se/uiicons.png

参见 LoadIcon DrawIcon 。您可能还希望学习 STATIC 控件。

See LoadIcon, DrawIcon at MSDN. You might also wish to study STATIC controls.

要绘制其他可视元素,您需要使用可视主题API,例如 DrawThemeBackground 接受类,部分和状态然后绘制它的函数:

To draw other visual elements, you need to use the visual themes API, e.g. the DrawThemeBackground function that accepts a class, part, and state and then draws it:

雪佛龙http://privat.rejbrand.se/chevron.png

这篇关于在哪里可以找到Windows 7 UX指南中推荐的图标/动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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