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. Add html help to a button

Add html help to a button

Scheduled Pinned Locked Moved C / C++ / MFC
htmlcomhelpquestion
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
    schliz
    wrote on last edited by
    #1

    I would like to add a html help to a button. I tried: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconcxtptopics.asp[^] but it is not working. Can you please give me a hint. Thank`s in advance. Georg

    P 1 Reply Last reply
    0
    • S schliz

      I would like to add a html help to a button. I tried: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconcxtptopics.asp[^] but it is not working. Can you please give me a hint. Thank`s in advance. Georg

      P Offline
      P Offline
      pc_dev
      wrote on last edited by
      #2

      in the onclick event of the button; use the shellexecute command, and in the command to be executed write hh ur-html-help-filename so when u will click button hh will open the html file. hh.exe is the program which executes the compiled html help files.

      S 1 Reply Last reply
      0
      • P pc_dev

        in the onclick event of the button; use the shellexecute command, and in the command to be executed write hh ur-html-help-filename so when u will click button hh will open the html file. hh.exe is the program which executes the compiled html help files.

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

        Thank's I will use the "What's this help" by using the html help functionas mentioned in the article: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/vsconovhtmlhelpapioverview.asp[^] what I did is: I took the function: void CMainFrame::HtmlHelp(DWORD_PTR dwData, UINT nCmd) { HWND hwnd = HtmlHelp( GetDesktopWindow), "c:\\Help.chm::/Intro.htm>Mainwin", HH_DISPLAY_TOPIC, NULL) ; CGuiFrameWnd::HtmlHelp(dwData, nCmd); } when I debugged I could enter the CMainFrame::HtmlHelp function after pressing the What`s this arrow and clicking left at any frame or window. Then I found the information to use the HWND hwnd = ... function as mentioned above. Now I get the error HtmlHelp function does not accept 4 parameters. As in the article mentioned the .lib is included and the path for is set. So I have no clue what to do!! Thank`s soo much! Georg

        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