大网数据广告活动
安装更新与部署

ICE31

· 52CE 我爱测

ICE31 validates any predefined font styles used in controls that display text. It also validates that the DefaultUIFont property refers to a valid font style.

ICE31 validates any predefined font styles used in controls that display text. It also validates that the DefaultUIFont property refers to a valid font style.

Controls can have a predefined font style as described in Adding Controls and Text. To set the font and font style of a text string, prefix the string of displayed characters with {\style} or {&style}. Where style is an identifier listed in the TextStyle column of the TextStyle table. If neither of these are present, but the DefaultUIFont property is defined as a valid text style, that font will be used.

ICE31 checks the Text column for each control in the Control Table to verifies that a valid entry exist in the TextStyle table.

ICE31 ignores the ScrollableText Control.

Results

ICE31 posts an error message for undefined styles, style names that are too long, a missing TextStyle table, and style tags with no closing brace.

ICE31 posts a warning if the style tag is not at the beginning of the line, or if a control has multiple style tags.

Example

ICE31 posts the following errors for the example shown:

  • Control DialogB.Control1 uses undefined TextStyle BadStyle.
  • Control DialogB.Control2 uses undefined TextStyle BadStyle.
  • Control DialogB.Control6 is missing closing brace in text style.
  • Control DialogB.Control3 specifies a text style that is too long to be valid.

ICE31 posts the following warning for the example shown:

  • Text Style tag in DialogB.Control4 has no effect. Do you really want it to appear as text?

Control Table (partial)

Dialog Control Text
DialogA Control0 {\OKStyle}This is the text to display.
DialogA Control1 {&OKStyle}This is the text to display.
DialogB Control1 {&BadStyle}This is the text to display.
DialogB Control2 {\BadStyle}This is the text to display.
DialogB Control3 {&Style that is over 72 chars and therefore cannot possibly be a style even if somehow you did manage to get it in the TextStyle table}This is the text to display.
DialogB Control4 Warning {\OKStyle}This is the text to display.
DialogB Control5 {\OKStyle}{&OKStyle}This is the text to display.
DialogB Control6 {\OKStyle This is the text to display.

TextStyle table (partial)

TextStyle
OkStyle

Related topics

ICE Reference

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。