tdiQuestion可以添加到TaskDialog.MainIcon吗?

发布于 2024-07-21 05:05:36 字数 99 浏览 3 评论 0原文

tdiQuestion可以添加到TaskDialog.MainIcon吗? “?”不可用 TaskDialog 中的图标使其几乎毫无用处。

有什么解决办法吗?

Can tdiQuestion be added to TaskDialog.MainIcon? Unavailability of the "?" icon in the TaskDialog renders it almost useless.

Is there any fix?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

落花随流水 2024-07-28 05:05:36

MainIcon 属性没有 tdiQuestion 选项的原因是 TaskDialog 是新 TaskDialogIndirect() 函数是 Vista 中引入的,TASKDIALOGCONFIG 此函数使用的结构不提供TD_ERROR_ICON在其 pszMainIcon 字段中。

如果您阅读了Windows 用户体验交互指南,特别是关于确认 您会注意到问题图标已被弃用很长一段时间,因此任务对话框不再提供它是很合适的,即使它仍然受支持 MessageBox() 出于向后原因兼容性。

您会注意到任务对话框中显示“是否要将更改保存到无标题?” 上面链接的文档中的问题确实没有图标,所以这可能也是您应该做的正确的事情。

The reason that there is no tdiQuestion option for the MainIcon property is that the TaskDialog is a wrapper around the new TaskDialogIndirect() function introduced with Vista, and the TASKDIALOGCONFIG structure this function uses provides no TD_ERROR_ICON in its pszMainIcon field.

If you read the Windows User Experience Interaction Guidelines, specifically the section on Confirmations you will notice that the question icon has been deprecated for a long time, so it is only fitting that the task dialog does no longer provide it, even though it is still supported for MessageBox() for reasons of backwards compatibility.

You will notice that the task dialog with the "Do you want to save changes to Untitled?" question in the documentation linked above does come without icon, so that's probably the proper thing for you to do as well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文