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