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: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

  • Live Event Date: November 20, 2014 @ 2:00 p.m. ET / 11:00 a.m. PT Are you wanting to target two or more platforms such as iOS, Android, and/or Windows? You are not alone. 90% of enterprises today are targeting two or more platforms. Attend this eSeminar to discover how mobile app developers can rely on one IDE to create applications across platforms and approaches (web, native, and/or hybrid), saving time, money, and effort and introducing apps to market faster. You'll learn the trade-offs for gaining long …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds