Stupid Question on calling Navigate2( ) from Mainframe
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!!!
Re: Stupid Question on calling Navigate2( ) from Mainframe
What about:
class MyView : public CView
{
public:
...
void Navigate(const CString& strURL);
...
};
void MyView::Navigate(const CString& strURL)
{
m_WebBrowser.Navigate2(strURL);
}
Dave