开发者

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

The Windows 7开发者_JAVA百科 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 ?


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.

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

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:

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


SHGetStockIconInfo has a decent list of system icons.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜