Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. HTMLHelp: How to start with?

HTMLHelp: How to start with?

Scheduled Pinned Locked Moved C / C++ / MFC
htmljsonhelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JHAKAS
    wrote on last edited by
    #1

    Hi I am now on stage to integrate the HTMLHelp build with HTML Workshop >> Help.chm In my project i had included the htmlhelp.h file and also the library htmlhelp.lib (both taken from HTML Help Workshop folder). Now what to do? Where to call the initialise or state that this is the html help file which has to be linked with teh project? WHere to use following API i.eHTMLHelp? HtmlHelp(); Urgent, Please help me in this respect? Sandeep Leave your mark wherever you go

    R 1 Reply Last reply
    0
    • J JHAKAS

      Hi I am now on stage to integrate the HTMLHelp build with HTML Workshop >> Help.chm In my project i had included the htmlhelp.h file and also the library htmlhelp.lib (both taken from HTML Help Workshop folder). Now what to do? Where to call the initialise or state that this is the html help file which has to be linked with teh project? WHere to use following API i.eHTMLHelp? HtmlHelp(); Urgent, Please help me in this respect? Sandeep Leave your mark wherever you go

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      Help topics are usually linked to different elements (dialogs, views) of your app. Here's what I do (which is slightly different from MS' process):* For every dialog (eg: CMyDialog), define a unique constant (eg: Help_MyDialog). Keep these constants in the file MyAppHelp.h. Include this file as a map in your HtmlHelp project. Ids in the file will map to your .chm's topic ids.

      • Add a "Help" button to your dialog. It's handler should execute this: HWND hWndHelp = HtmlHelp (NULL, strHelpFile, HH_HELP_CONTEXT, Help_MyDialog); where strHelpFile is the full path to your app's .chm file.
      • Add a handler for the WM_HELPINFO message. This message is sent whent the user clicks the F1 key. In its handler, just call your Help button handler. /ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com
      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups