????? ?????? ??? ???? ?????? WebBrowser ?????? HTML

?????? ????????? ?????? ?????????
???? ???????: 196340 - ??? ???????? ???? ????? ????? ??? ???????.
(?) 1998 ???? Microsoft ? ???? ???? ?????. ????????? ??? ???? Roberts ? Microsoft Corporation.
????? ???? | ?? ????

??????

???? ??????? ??? ???????? ??????? ???????? ???? ?????? WebBrowser ????? ?????? ?????? ??? ???? ???? WebBrowser ???????? ???? ?? ???? HTML ???? ???? ??????. ???? ??? ?????? ??????? ???????? ???? ?? ??? ????? ?? ???? ?????? ???? ????? ???? HTML.

??????? ????

???????? ???????? ??????? ???? ????? ?????? ??? ???? ???? WebBrowser ???????? ?? ???? HTML ?????? ??????? ?? ????.

?????? ??? ???? ?? ????????? ???????? ????? IOleContainer::EnumObjects ???? ????? HTML ????? ????????? ?? ??????. ???? ?? ?? ??? ????????? ???? ???? ??? ??????. ?? ???? ????????? ?? ???? ?????? ?? IWebBrowser2 ? ???? ????? ??? ??? ?? ??? ??? ???? ?????? sub-frame. ? IWebBrowser2 ???? ????? ???? WebBrowser; ?? ??? ???? QueryInterface ??????? ??? ??????? ???? ??? ????? ???? WebBrowser.
// Get the IDispatch of the document
LPDISPATCH lpDisp = NULL;
lpDisp = m_webBrowser.GetDocument();

if (lpDisp)
{
   IOleContainer* pContainer;

   // Get the container
   HRESULT hr = lpDisp->QueryInterface(IID_IOleContainer,
                                       (void**)&pContainer);
   lpDisp->Release();

   if (FAILED(hr))
      return hr;

   IEnumUnknown* pEnumerator;

   // Get an enumerator for the frames
   hr = pContainer->EnumObjects(OLECONTF_EMBEDDINGS, &pEnumerator);
   pContainer->Release();

   if (FAILED(hr))
      return hr;

   IUnknown* pUnk;
   ULONG uFetched;

   // Enumerate and refresh all the frames
   for (UINT i = 0; S_OK == pEnumerator->Next(1, &pUnk, &uFetched); i++)
   {
      IWebBrowser2* pBrowser;

      hr = pUnk->QueryInterface(IID_IWebBrowser2, (void**)&pBrowser);
      pUnk->Release();

      if (SUCCEEDED(hr))
      {
         // Refresh the frame
         pBrowser->Refresh();
         pBrowser->Release();
      }
   }

   pEnumerator->Release();
}
?????? ????? ?????? ActiveX ???? ??? ????????? ?? ???? HTML ???? ??????? ??? ??????? ?????? ??????. ???? ???? ??? ??? ??????? ???? ???? ActiveX ??? ??? ????? ???? WebBrowser ??? ?????? ??? ??? ????? ????? IObjectSafety ????? ???? ??????.

???????

???? ???????: 196340 - ????? ??? ??????: 23/???? ?????/1425 - ??????: 3.0
????? ???
  • Microsoft Internet Explorer (Programming) 6.0
????? ??????: 
kbmt kbfaq kbhowto kbwebbrowser KB196340 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????196340
????? ??????? ?? ????? ???? ?? ????? ???????
?? ????? ????? ?????? ???? ???? ???? ??? ??????? ??? ?? ? ?? ??? ??????? Microsoft ??? ????? ??? ??????? ????? ?????? ?????

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

 

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