Connecting HTML Help to C++/MFC Programs

Although optimized for WinHelp (as of Visual Studio 6), MFC provides several hooks for easily connecting to any online help, including HTML Help and HTML based help. In addition, you can call the HtmlHelp API from anywhere in your program for additional access to help. The Connecting Context Sensitive Help to C++/MFC Programs section shows how to connect to the built in hooks that MFC provides, and is therefore specific to programming with MFC. The remainder of the document should be easily adaptable to any version of C++, as it sets forth the Windows calls and command line interface for HTML Help.

Connecting Context Sensitive HTML Help to C++/MFC Programs
MFC provides for calling WinHelp topics using the WinHelp function of the CWnd class, from which the Main Frame window of your program is derived if you use the App Wizard. In addition you can override dialog box routines to get control level F1 or right click help if needed. In order to use HTML Help you must override the WinHelp function and directly call the HtmlHelp API. This section shows the steps necessary to hook context sensitive HTML Help into a program created using MFC.

Get pdf download Connecting HTML Help to C++/MFC Programs

Related Tutorial

Tags: , , , , , , , , , , ,

Comments

Leave a Reply