CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    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!!!


  2. #2
    Join Date
    Apr 1999
    Posts
    383

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured