I would like to use the what`s this html help for my application but I can not add additional help for my views or buttons. The automatically created help for the menue and so on works. What I tried is: In the help folder there is a .hpp file. There I added a new Help Homepage. I added the HP to the topics. There is a HTMLDefines.h file as well in the hlp folder. There I added a define to my IDC_BUS in my application. In the application: I created: void CMainFrame::HtmlHelp(DWORD_PTR dwData, UINT nCmd) { CGuiFrameWnd::HtmlHelp(dwData, nCmd); } When I debugged the project CGuiFrameWnd::HtmlHelp(dwData,nCmd) is called. inside CWinApp* pApp = AfxGetApp(); ASSERT_VALID(pApp); ASSERT(pApp->m_pszHelpFilePath != NULL); // to call HtmlHelp the m_fUseHtmlHelp must be set in // the application's constructor ASSERT(pApp->m_eHelpType == afxHTMLHelp); CWaitCursor wait; PrepareForHelp(); // need to use top level parent (for the case where m_hWnd is in DLL) CWnd* pWnd = GetTopLevelParent(); TRACE(traceAppMsg, 0, _T("HtmlHelp: pszHelpFile = '%s', dwData: $%lx, fuCommand: %d.\n"), pApp->m_pszHelpFilePath, dwData, nCmd); // run the HTML Help engine if (!AfxHtmlHelp(pWnd->m_hWnd, pApp->m_pszHelpFilePath, nCmd, dwData)) AfxMessageBox(AFX_IDP_FAILED_TO_LAUNCH_HELP); happens. My mapping ID to Help does not work. Can you please help me what I have to do? Thank you
schliz
Posts
-
What`s this html help for my application -
Add html help to a buttonThank'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
-
Add html help to a buttonI 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
-
InformationThank you so much I will try this! Do you have any book recommendation how to learn this without the wizzard? I have knowledge in programming C++ and I would need information how the framework works and its functionality. Thank you very much in advance. Georg:)
-
InformationHi everybody! I would like to add graphical objects like buttons and so on to my project. But I do not want to use any wizzard. In every book I bought there is just the information how to add things by using the wizzard. Were can I get sources of information about Vc++ .Net, that I will be able to programm everything without a wizzard. Thank you very much. Georg