|
-
March 24th, 2003, 09:00 PM
#1
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
-
March 24th, 2003, 09:53 PM
#2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|