CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: HtmlHelp events

  1. #1
    Join Date
    Mar 2002
    Location
    England
    Posts
    23

    HtmlHelp events

    Hello,
    I am trying to implement context-sensitive HtmlHelp in my application using VC++ .Net. I have succeeded in implementing help using the F1 key, as follows:

    BOOL CMainFrame::OnHelpInfo(HELPINFO* pHelpInfo)
    {
    //pHelpInfo gives me the ID
    ::HtmlHelp(this->GetSafeHwnd(),AfxGetApp()->m_pszHelpFilePath,HH_HELP_CONTEXT,pHelpInfo->iCtrlId);

    //return CFrameWnd::OnHelpInfo(pHelpInfo);
    return 1;
    }

    I am now trying to do the same for the help toolbar button that changes the cursor into a questionmark until you click on something.

    What bothers me is that I can't find any convenient eventhandler like the one above to give me the ID of the menuitem or control that is being clicked upon. The eventhandler above doesn't seem to work for the toolbar. Any ideas? There must be a way to find the ID.

    Help much appreciated.

    Trimtrom

  2. #2
    Join Date
    May 2000
    Location
    Toronto, ON, Canada
    Posts
    3,573
    Regards,

    Emanuel Vaduva

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured