Using HtmlView apart from Tecno Preview

Download demo code 158K

In the upcoming Visual C++ 6.0, we'll have a view class wrapper for the Internet Explorer, providing us with an html view.
While waiting for VC6.0, we can have the HtmlView downloading the huge Tecno Preview from Microsoft.
For those of you who needs, of all the Tecno Preview, only the HtmlView, I've "ported" it here. In the demo there is a CHView class which is basically the CHtmlView from tecno preview.

How to use it

You simply need to add the CHView files (ViewH.cpp and ViewH.h files) to your project; then copy the directory "fromTecno" of the project in yours and add to your project the fromTecno\uuid.lib file.
You'll need the 2 files in the fromTecno directory or the app won't compile (they are from the tecno preview).
You'll also need to provide the command identifier for the HtmlView basic functions, ID_WEBBACK, ID_WEBFORWARD, .. look at the CHView message map); a fast way is to delete the IDR_MAINFRAME toolbar of your app and put the one of the demo instead.
Then derive manually the CView based view of your project from the CHView (use search / replace for CView to CHView in your view header and cpp files).

I added to the CHView a CString variable, csHomePage, holding the "homepage" to be opened at start; in the demo, I puttet this article you are reading in the "html" directory; to find the right path, I get the startup directory in the app OnInitInstance, put it in a global CString csAppDir variable, find out the path of the home page in the CHView contructor and load the html page in the CHView OnInitialUpdate.

To load a page in the view, use the view Navigate2(url) function.
Remember that is works only with Internet Explorer 4 installed on your system!

If you want to know more about HtmlView and Tecno Preview, try at Microsoft Visual C++ pages.

Last updated: 2 July 1998



Comments

  • nike shoes is giving completely new life span to the old matter. . . gold level

    Posted by expopmerm on 03/18/2013 07:24pm

    Out of the ordinary write-up supplies you with the run data on the nike shoes which only a couple of buyersare conscious of.|Short article shows you all cogs and wheels for adidas shoes in addition to those actions you ought to do today.}[url=http://www.nikejapan.asia/]ナイキ air [/url] The Magic Recipe For nike shoes [url=http://www.adidasjapan.biz/]adidas シューズ[/url] The thing that all the others has been doing in the matter of nike shoes and consequently the things youshould do different. How gucci Made Me Rich And Famous [url=http://www.guccijp.asia/]財布 gucci[/url] The best formula for the chloe that you may understand about straight away. [url=http://www.chloejp.biz/]財布 chloe[/url] Here is how to discover all the things there is to find out around chanel bags in five easy steps. [url=http://www.chaneljp.biz/]財布 chanel[/url] The easiest way to understand all that there is to find out relating to chanel in Some easy steps.The genuine article about nike shoes that the experts wouldn't like one to be aware of. [url=http://www.adidasjapan.asia/]adidas シューズ[/url] Wow, incredible item. Your company must have a look at nike shoes right away whilst it's still up for grabs ! ! [url=http://www.nikejp.biz/]nike スニーカー[/url] Actual Techniques To Learn about nike shoes And Also The Way One Might Connect with The nike shoes Elite

    Reply
  • Source

    Posted by Legacy on 12/16/2002 12:00am

    Originally posted by: Kha

    Xem thong tin

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

Top White Papers and Webcasts

  • Live Event Date: May 6, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT While you likely have very good reasons for remaining on WinXP after end of support -- an estimated 20-30% of worldwide devices still are -- the bottom line is your security risk is now significant. In the absence of security patches, attackers will certainly turn their attention to this new opportunity. Join Lumension Vice President Paul Zimski in this one-hour webcast to discuss risk and, more importantly, 5 pragmatic risk mitigation techniques …

  • Hurricane Sandy was one of the most destructive natural disasters that the United States has ever experienced. Read this success story to learn how Datto protected its partners and their customers with proactive business continuity planning, heroic employee efforts, and the right mix of technology and support. With storm surges over 12 feet, winds that exceeded 90 mph, and a diameter spanning more than 900 miles, Sandy resulted in power outages to approximately 7.5 million people, and caused an estimated $50 …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds