Opening HTML Help topic in browser
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
How do I open an HTML help topic in a browser window created inside my application? Something like VS.NET!
-
How do I open an HTML help topic in a browser window created inside my application? Something like VS.NET!
This snippet may help.
#include ...
HWND ShowHelpPage (LPCSTR szPageName, LPCSTR szAnchor)
{
CString helppage = CGlobals::GetExeDirectory ();
helppage += "XXXX.chm";
if (szPageName && ::lstrlen (szPageName))
{
helppage += "::/";
helppage += szPageName;
helppage += ".htm";
if (szAnchor && ::lstrlen (szAnchor))
{
helppage += "#";
helppage += szAnchor;
}
}HWND hReturn = ::HtmlHelp(::GetDesktopWindow (), helppage, HH\_DISPLAY\_TOPIC, NULL); return hReturn;
}
Iain.