Solved

HTML in a window

Posted on 1999-01-22
3
143 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
has22 challenge 11 78
fizzArray2 challenge 1 71
Fibonacci challenge 11 108
wordappend challenge 8 142
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

947 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now