Where do I find the icons / animations recommended in the Windows 7 UX guide?

假如想象 提交于 2019-12-21 02:57:39

问题


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 ?


回答1:


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.

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

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:




回答2:


SHGetStockIconInfo has a decent list of system icons.



来源:https://stackoverflow.com/questions/5170718/where-do-i-find-the-icons-animations-recommended-in-the-windows-7-ux-guide

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!