Click to See Complete Forum and Search --> : Stupid Question on calling Navigate2( ) from Mainframe


April 15th, 1999, 10:05 PM
Hi ALL!!!
I have an HTML view class that calls Navigate2(_T( )) when the user clicks on one of the menu buttons. I wanted to be able to call the HTML view class to do this from my MainbFrame, but I was unable to. Could somebody please give me an example of how to make a function that is in the HTML view class that calls Navigate2(_T( )) that I can call from the Mainframe class
Thanks alot!!!

Dave Lorde
April 16th, 1999, 08:29 AM
What about:

class MyView : public CView
{
public:
...
void Navigate(const CString& strURL);
...
};

void MyView::Navigate(const CString& strURL)
{
m_WebBrowser.Navigate2(strURL);
}

Dave