PRB: ?????? ????? ?????? WebBrowser ??????? ??????

?????? ????????? ?????? ?????????
???? ???????: 183412 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

???????

???? ??????? ??????? ????? ???? WebBrowser ?????? ??? ??????? ?????? ????????.

????? ???????? ???? ?????? WebBrowser ???????? ??? ?????? ?????? Online (AOL) ??? ??????. ??? ???? ??????? ????? ???? ?????? ???????? ?? ??? AOL ?? ??????? WWW AOL ????? ???? ????? ??? ?????? ???????? ?????????? ??? ?? AOL ? ?????? ?????? (IE) ? ??? ????? ??? ??????? IE ???? ????? ?? AOL.

??? ????? ?????? ?????? ?????? ???? ??? ???????? ??? ??? ?????? ??????? ?? Microsoft; ???? ?? ???? ? ?????? ?? ??????? ????? ???? ??? ???????? ?? ???????.

????

?????? ??? ???? ??????? ?????? ???????? ???? ????? ?????? ???? ?????? ?? ??????? ???????? ??? ???? WebBrowser.

??? ???? ?????? ??????? ????? ??? ?? ??? ??? ???? ????? ActiveX ?????? ?? ?? ? ???? ????? ?????? ?????? ??? ???? ??? ????.

?????

????? ??? ?????? ??? ???????.

??????? ????

??? ?? ?????? ?? ???? ?????? SDK (InetSDK) ? ???? ????? ???????? WebBrowser ??????? ambient DISPID_AMBIENT_DLCONTROL ??? ??????? ??????? ?????????? ?????? ??? ??? ????? ??????? ?????? ?? ??? ?????? ???????.

???? ??????? WALKALL ?? InetSDK (\InetSDK\Samples\Walkall) ??? ??????? ??? ???? MSHTML. ???? ?? ??????? ????? ?????? ?? ???????? WebBrowser ?????? ??????? ????.

MSHTML ????? ?????? ????? ?????? ???? ??? DISPID_AMBIENT_USERAGENT ??? ?????? ??? ????? ??? ?????????? ????????. ???? ????? ??? ??????? ambient ? ???? ?? ??? ???????? ??? ??????? ????? ?????? ???????; ??? ????? ?? ???? ??? ????? userAgent ??????? DOM ???? ?????? ?? clientInformation ??? ????? - ????? ????? ??? ??????? ??? ????? UserAgent ?? Internet Explorer ??????.

?????? ???? ???? MFC ???? ?????? WebBrowser ??? ??????? ambient ?????? ????? ????? OnAmbientProperty ????? ??? CWnd-???????:
BOOL CWBHostView::OnAmbientProperty(COleControlSite* pSite,
                                    DISPID dispid, VARIANT* pvar)
{
USES_CONVERSION;
   // Change download properties - no java, no scripts...
   if (dispid == DISPID_AMBIENT_DLCONTROL)
   {
      pvar->vt = VT_I4;
      pvar->lVal = DLCTL_NO_SCRIPTS | DLCTL_NO_JAVA
                 | DLCTL_NO_RUNACTIVEXCTLS | DLCTL_NO_DLACTIVEXCTLS;

      return TRUE;
   }

   // Change user agent for this web browser host during hyperlinks
   if (dispid == DISPID_AMBIENT_USERAGENT)
   {
      CString strUserAgent("MyWebBrowserHost");

      pvar->vt = VT_BSTR;
      pvar->bstrVal = ::SysAllocString(T2OLE(strUserAgent));

      return TRUE;
   }

   return CView::OnAmbientProperty(pSite, dispid, pvar);
}
				
DISPID_AMBIENT_ * DLCTL_ * ???? ???????? ?? Mshtmdid.h (\InetSDK\Include\MSHTMDID.H).

?????

?????? ??? ???? ?? ????????? ??? ????? ?????? ???????? ??? ??? ??????? Microsoft Internet Explorer? ?? ?????? ????? Microsoft ??????? ??? ?????:
http://msdn.microsoft.com/ie/

http://support.microsoft.com/iep

???????

???? ???????: 183412 - ????? ??? ??????: 13/???? ??????/1427 - ??????: 2.0
????? ???
  • Microsoft Internet Explorer 3.0
  • Microsoft Internet Explorer 3.01
  • Microsoft Internet Explorer 3.02
  • Microsoft Internet Explorer 4.0 128-Bit Edition
  • Microsoft Internet Explorer 4.01 Service Pack 2
  • Microsoft Internet Explorer 5.0
  • Microsoft ActiveX SDK
  • Microsoft Internet Client Software Development Kit 4.0
????? ??????: 
kbmt kb3rdparty kbfaq kbprb kbwebbrowser KB183412 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????183412

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com