CPropertySheet上的上下文帮助按钮行为 [英] Context help button behaviour on CPropertySheet

查看:97
本文介绍了CPropertySheet上的上下文帮助按钮行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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).

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

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.

有人可以告诉我如何实现这一目标吗?

推荐答案

根据我的评论,在消息映射中添加 ON_WM_SYSCOMMAND ,然后在中处理 SC_CONTEXTHELP OnSysCommand 达到了目的.

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

这篇关于CPropertySheet上的上下文帮助按钮行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆