The latest version of Microsoft Office uses property sheets that have the context help [?] button next to the close button:
<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/U6PIt.png" data-original="https://i.stack.imgur.com/U6PIt.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />
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).
<strong>I'm trying to recreate this behaviour in an property sheet derived from the MFC CPropertySheet</strong>. 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.
<strong>Can anyone tell me how this might be achieved?</strong>Answer1:
As per my comment, adding <strong>ON_WM_SYSCOMMAND</strong> to the message map and then processing <strong>SC_CONTEXTHELP</strong> in <strong>OnSysCommand</strong> did the trick.