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. Issues with HtmlHelp

Issues with HtmlHelp

Scheduled Pinned Locked Moved C / C++ / MFC
htmljsonhelp
3 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.
  • S Offline
    S Offline
    Shaffiq
    wrote on last edited by
    #1

    We want to display help files(.chm format) using HTMLHelp API in a particular format. HH_KEYWORD_LOOKUP command is used with HtmlHelp API to search for one or more Keywords in a compiled HTML Help (.chm) File and display it in a "Topics Found" window. We have some issues with using the HH_KEYWORD_LOOKUP command. 1)When we invoke "Topics Found" window using HH_KEYWORD_LOOKUP command, the parent window from which the "Topics Found" window was invoked doesn't get re-drawn. When you drag the "Topics Found" Window over Parent Window, all the display of the parent window gets erased and is not redrawn. But when we invoke "Topics Found" window from HTMLHelp(chm) Window , the parent window gets re-drawn. 2)When we invoke "Topics Found" window, and move the cursor out-side of the "Topics Found" window ,we get a wait cursor. We tried with all options in HWND hwndCaller by passing Parent Window Handle,Desktop and NULL.- all with similar results ( as mentioned above) NB: We need to display HTMLHelp Window only after selecting from "Topics Found" Window. Otherwise please provide us any alternative solution. Thanks In Regards shaffiq Ahamed

    S 1 Reply Last reply
    0
    • S Shaffiq

      We want to display help files(.chm format) using HTMLHelp API in a particular format. HH_KEYWORD_LOOKUP command is used with HtmlHelp API to search for one or more Keywords in a compiled HTML Help (.chm) File and display it in a "Topics Found" window. We have some issues with using the HH_KEYWORD_LOOKUP command. 1)When we invoke "Topics Found" window using HH_KEYWORD_LOOKUP command, the parent window from which the "Topics Found" window was invoked doesn't get re-drawn. When you drag the "Topics Found" Window over Parent Window, all the display of the parent window gets erased and is not redrawn. But when we invoke "Topics Found" window from HTMLHelp(chm) Window , the parent window gets re-drawn. 2)When we invoke "Topics Found" window, and move the cursor out-side of the "Topics Found" window ,we get a wait cursor. We tried with all options in HWND hwndCaller by passing Parent Window Handle,Desktop and NULL.- all with similar results ( as mentioned above) NB: We need to display HTMLHelp Window only after selecting from "Topics Found" Window. Otherwise please provide us any alternative solution. Thanks In Regards shaffiq Ahamed

      S Offline
      S Offline
      Sam Levy
      wrote on last edited by
      #2

      It sounds like your app's message queue is not getting pumped. Before calling the HTMLHelp API, start a timer with something like SetTimer(1, 100, NULL);. Or an alternative would be to call the HTMLHelp API from a non-GUI thread. It's strange that it behaves this way. I suggest you try to reproduce this in a small app before you go to a lot of trouble. Your help file might be trashed.

      S 1 Reply Last reply
      0
      • S Sam Levy

        It sounds like your app's message queue is not getting pumped. Before calling the HTMLHelp API, start a timer with something like SetTimer(1, 100, NULL);. Or an alternative would be to call the HTMLHelp API from a non-GUI thread. It's strange that it behaves this way. I suggest you try to reproduce this in a small app before you go to a lot of trouble. Your help file might be trashed.

        S Offline
        S Offline
        Shaffiq
        wrote on last edited by
        #3

        I tried in small application.Behaviour is same.This does not happens when you use Winhelp API with command HELP_KEY for hlp files.It behaves strange for HTMLHELP.

        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