Solved

HTML in a window

Posted on 1999-01-22
3
146 Views
Last Modified: 2013-11-20
Is it possible to have internet explorer load an HTML page into one of my programs windows?  Like the visual c++ help does.  What classes or functions can do this?
0
Comment
Question by:Bashfull
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1328181
Add the webbrowser control to your form.
0
 

Author Comment

by:Bashfull
ID: 1328182
Sorry, i didn't mention i am using visual c++/mfc.  How would i get the control for it to be used there? (I assume your answer was for VB)
0
 
LVL 13

Accepted Solution

by:
Mirkwood earned 100 total points
ID: 1328183
No I did not.

Choose project/add components/
and add the webbrowser control.

Here is some sample code
CRect rect;
GetClientRect (&rect);// Create the control.
m_pBrowser = new CWebBrowser;ASSERT (m_pBrowser);
if (!m_pBrowser->Create(NULL,NULL,WS_VISIBLE,rect,this,NULL)){
    TRACE("failed to create browser\n");    delete m_pBrowser;
    m_pBrowser = NULL;    return 0;}// Initialize the first URL.
COleVariant noArg;
m_pBrowser->Navigate("www.microsoft.com",&noArg,&noArg,&noArg,&noArg);return 0;


BTW: MFC has now also the CHtmlView. Also very good.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
not able to insert into temp table 68 174
ORA-01403: no data found 43 112
Complete beginner needs help making a cron job 9 131
moto 4g phone enable finger print 4 48
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question