CPropertySheet 上的上下文帮助按钮行为

发布于 2025-01-06 02:37:31 字数 385 浏览 3 评论 0原文

最新版本的 Microsoft Office 使用的属性表在关闭按钮旁边具有上下文帮助 [?] 按钮:

在此处输入图像描述

当单击上下文按钮时,它会调用应用程序的帮助,而不是切换到“上下文模式”,我的意思是带有问号的箭头光标,即没有上下文帮助,尽管这是上下文帮助按钮(或出现是)。

我正在尝试在派生自 MFC CPropertySheet 的属性表中重新创建此行为。到目前为止我还没有运气。理想情况下,我希望单击此按钮的操作方式与按 F1 相同,例如直接调用 OnHelpInfo 函数。

谁能告诉我如何实现这一目标?

The latest version of Microsoft Office uses property sheets that have the context help [?] button next to the close button:

enter image description here

When the context button is clicked it invokes the application's help rather than switching to 'context mode', by which I mean the arrow cursor with a question mark, i.e. there is no context help despite this being the context help button (or appears to be).

I'm trying to recreate this behaviour in an property sheet derived from the MFC CPropertySheet. So far I've had no luck. Ideally I'd like a click on this button to act in the same way as pressing F1, e.g. call directly on to the OnHelpInfo function.

Can anyone tell me how this might be achieved?

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

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

发布评论

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

评论(1

黑色毁心梦 2025-01-13 02:37:31

根据我的评论,将 ON_WM_SYSCOMMAND 添加到消息映射,然后在 OnSysCommand 中处理 SC_CONTEXTHELP 就可以了。

As per my comment, adding ON_WM_SYSCOMMAND to the message map and then processing SC_CONTEXTHELP in OnSysCommand did the trick.

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