CPropertySheet 上的上下文帮助按钮行为
最新版本的 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:
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据我的评论,将 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.