Context help button behaviour on CPropertySheet


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>


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.


  • Error: “You have been creating or deleting too many calendars or calendar events in a short time.”
  • VerifyError: Error #1079: Native methods are not allowed in loaded code
  • Is it possible to restore a GraphicsDevice if something goes wrong with it?
  • Eclipse Swing WindowBuilder returns error when trying to set border
  • Are channel sends preemption points for goroutine scheduling?
  • Optimizing Memory in Android when managing Fragment Transactions
  • Dynamic SQL with variables inside a view (SQL Server)
  • Multiple Layouts Previews for Android in Eclipse
  • how do you read the ramda docs?
  • VB.NET - RichTextBox - Apply formatting to selected text
  • How to use the File System Events API in Swift?
  • Column Nullability/Optionality: NULL vs NOT NULL
  • What's the benefit of the trailing apostrophe in character literals
  • IE readonly textarea problem
  • Query timeout expired in django-mssql when executing custom SQL directly
  • Scrolling News Ticker Jquery - Issues
  • Fixed Background Works in Chrome but Not Firefox?
  • Hibernate in Glassfish - Ejb3Configuration NoClassDefFoundError
  • Cursor in wrong place in contenteditable
  • Responsive Form on top of Responsive Image? - Bootstrap
  • EF 4.1 DBContext AutoDetectChangesEnabled
  • Pre-populated SQLite Database not reading properly in Android Studio
  • How to open html table in xls on click of a button
  • Converting query results into DataFrame in python
  • Spring integration inbound-gateway Fire an event when queue is empty
  • Cloud Code function running twice
  • Getting media player state in windows phone 7
  • Possible to get mouse events fired when cursor is outside page?
  • How do I get HTML corresponding to current DOM tree?
  • Ajax Loaded meta Tags
  • Xamarin Forms - UWP Fonts
  • C# - Serializing and deserializing static member
  • Sending data from AppleScript to FileMaker records
  • Arrow is showed instead of the material design version hamburger icon. Why doesn't syncState in
  • How to show dropdown in excel using jrxml (jasper api)?
  • Arrays break string types in Julia
  • Data Validation Drop Down Box Arrow Disappearing
  • How to include full .NET prerequisite for Wix Burn installer
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Is it possible to post an object from jquery to bottle.py?