HTML Help In CView Window

 
Download Source Code - 5KB


HOW TO USE: These classes provide HTML Help in a CView Window. In Order to use these clases, add HTMLHelpView and HTMLHelpViewDoc to your project.

You Should also define a template for the view, e.g.:

m_pHTMLHelpTemplate = new CPNMMultiDocTemplate(IDR_PNMNETWORKVIEW,
			RUNTIME_CLASS(CHTMLHelpViewDoc),
			RUNTIME_CLASS(CChildFrame),
			RUNTIME_CLASS(CHTMLHelpView));
AddDocTemplate(m_pHTMLHelpTemplate);	
And Call the view, like so...
void CMyApp::OnMenuHelpContents() 
{
	CDocument *pDoc = GetHTMLHelpTemplate()->OpenDocumentFile(NULL);	
	pDoc->SetTitle("HTML Help");
}
You will need to replace any "Quoted" strings with your own relevant information. (Help files, directories, etc). This is documented in the code.

KNOWN BUGS: At present I cannot seem to get my table of contents to work correctly when my compiled HTML file is called.

Last updated: 6th August 1998



Comments

  • Incomplete download

    Posted by Legacy on 01/16/2001 12:00am

    Originally posted by: CodeGod

    Your code download is incomplete and looks like it doesn't work anyway.

    Reply
  • HTML View class questions...

    Posted by Legacy on 01/20/2000 12:00am

    Originally posted by: Mark Hetherington

    I am trying to create a CHTMLView class of my own which allows me to enter HTML data from memory into the view. Right now CHtmlView only allows Navigate() or Navigate2(), which accept files or addresses.

    Do you know if this class will support this type of display?

    Reply
  • Could you give an example please?

    Posted by Legacy on 05/06/1999 12:00am

    Originally posted by: D. Adams

    If this makes it even easier to exlicitly import classes, I am eager to find out how, but I don't completely understand your suggestions. Could you provide an example project please?

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: August 19, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT You deployed your app with the Bluemix PaaS and it's gaining some serious traction, so it's time to make some tweaks. Did you design your application in a way that it can scale in the cloud? Were you even thinking about the cloud when you built the app? If not, chances are your app is going to break. Check out this upcoming webcast to learn various techniques for designing applications that will scale successfully in Bluemix, for the …

  • A majority of organizations are operating under the assumption that their network has already been compromised, or will be, according to a survey conducted by the SANS Institute. With many high profile breaches in 2013 occurring on endpoints, interest in improving endpoint security is top-of-mind for many information security professionals. The full results of the inaugural SANS Endpoint Security Survey are summarized in this white paper to help information security professionals track trends in endpoint …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds