Hi

I would like to add context-sensitive help text for dialogs, where the text
not are fetch from a RTF file, but is a plain text-string.

In fact, the text that I want present are stored in the registry - I have no
problem in fetching the text - but how do I combined it with the help ?

Normally I do this:

BOOL CMyDialogClass::OnHelpInfo(HELPINFO* pHelpInfo)
{
return ::WinHelp ( (HWND)pHelpInfo->hItemHandle,
AfxGetApp()->m_pszHelpFilePath, HELP_WM_HELP, (DWORD)(LPVOID)m_dwHelpMap);
}

and this:

void CMyDialogClass::OnContextMenu(CWnd* pWnd, CPoint point)
{
::WinHelp ( pWnd->GetSafeHwnd(), AfxGetApp()->m_pszHelpFilePath,
HELP_CONTEXTMENU,(DWORD)(LPVOID)m_dwHelpMap);
}

Best regards

Peter Damgaard Ebeling
Bosch Telecom Danmark A/S

Emails:
[email protected] (work)
[email protected] (private)