i am using Microsoft web browser control in an MFC Application.
It displays a login page initially using
control.navigate(URL) method
After login i need to access the URL from the control.
How this can be done?
Can anyone help me out
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
MSDN has a section all about "Using MFC to Host a WebBrowser Control". In there it mentions using the following:
Regarding when you try to get that information, you could check
m_browser.Busy(...)orm_browser.ReadyState(...)to see if any kind of navigation/download is currently happening.I confess to never using the control myself so don’t know if there’s a simple way to get a callback saying that the URL has changed, but the above link should give you most of the information you need. Hopefully 🙂