|
-
May 6th, 1999, 04:48 AM
#1
How do I add help text, when the text not are fetch from a RTF file ?
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)
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
|