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

???? ?????? ???? ??????
???? ID: 183412
??? ?? ??????? ???? | ??? ?? ??????? ????

?????

WebBrowser ???????? ?? ??? ??????? ???? ??????? ??????? ???????? ???? ???

?????????? WebBrowser ???????? ??????? ???? ??????? ?????? (AOL) ??????? ?? ?? ??????? ?? ???????? ???? ???? ?????? ?? ???, AOL ?? WWW ???????????? ??? AOL ?? ??? ??? ???????? ??? ????? ????????? ???? ???? ??? ???? ???????? ??? ????? AOL ?? Internet Explorer (IE), ????? ?? ??? ?? ?? ?? IE AOL ?? ???-??? ????? ??? ???

???? discussed ?????-???? ?????? Microsoft ?? ???????? ???? ?????????? ?? ?????? ???? ???? ???; ?? ??? ?? ??????, ?????????? ?? ???? ???? ?? ???????? ????? ???????? ?? ??????????? ?? ???? ??? ???

????????

??????? ??????? ???????? ?? ??????? ?? ??? ??? ???????? ??? ?? ???????? WebBrowser ????? ???? ?? ??? ??? ?? ?? ??? ?? ?????? ?? ??? ??????? ???? ???? ???

???????, ??? ??????? ??????, ???? ActiveX ?? ??????? ???? ?? ??? ?? ???? ????????? ???? ?? ?? ????, ?? ???? ??? overridden ?? -????? ?? ???? ?? ????????? ?????

??????

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

???? ???????

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

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

MSHTML ?? ?????? DISPID_AMBIENT_USERAGENT ?? ?????? ?? ?? ??? ?????????? ????? ?? ??? ?? ???????? ????????? ?? ????? ???? ???? ?? ???? ?? ambient ??? overridden ?? ?? ???? ???, ????? ???? ????? ???? ???? ?? ?? ????????? Navigate ?????? ?? ???; ??? ????? ?? ???? ???? userAgent ??? DOM ???????? ?? ??????? ???? ????????? ???? ?? ??? ???????? ?? clientInformation - ?? ??? Internet Explorer ?? ???? UserAgent ???????? ????? ??????????? ??????

WebBrowser ???????? ?? ?? MFC ????? 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);
}
				
Mshtmdid.h (\InetSDK\Include\MSHTMDID.H) ??? DISPID_AMBIENT_ * ?? DLCTL_ * ??? ????????? ????

??????

Microsoft Internet Explorer ?? ??? ???-?????? ?????? ?? ???? ?? ???? ??? ???? ??????? ?? ??? ????? Microsoft ??? ???? ?? ????:
HTTP://MSDN.Microsoft.com/IE/

HTTP://support.Microsoft.com/iep

???

???? ID: 183412 - ????? ???????: 02 ?????? 2010 - ??????: 4.0
??????: 
kb3rdparty kbFAQ kbprb kbwebbrowser kbmt KB183412 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??: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