include < afxinet.h >
void CSameIEWndDlg::OnStatusTextChangeExplorer1(LPCTSTR Text) { DWORD dwServiceType=AFX_INET_SERVICE_HTTP; CString strServer; CString strObject; INTERNET_PORT nPort;
if (::AfxParseURL(Text,dwServiceType,strServer,strObject,nPort)) { m_strUrl=Text; } }
void CSameIEWndDlg::OnNewWindow2Explorer1(LPDISPATCH FAR ppDisp, BOOL FAR Cancel) { m_wndWebBrowser.Navigate(m_strUrl,NULL,NULL,NULL,NULL); *Cancel=TRUE; }