class CTryView : public CHtmlView
{
// {
virtual void DocumentComplete(LPDISPATCH pDisp, VARIANT* URL);
// }
protected: // create from serialization only
CTry_081109View();
DECLARE_DYNCREATE(CTry_081109View)
...
};
void CTryView::DocumentComplete(LPDISPATCH lpDisp, VARIANT* URL)
{
// {
IUnknown* pUnk;
LPDISPATCH lpWBDisp;
HRESULT hr;
pUnk = m_pBrowserApp;
// pUnk = m_webBrowser.GetControlUnknown();
ASSERT(pUnk);
hr = pUnk->QueryInterface(IID_IDispatch, (void**)&lpWBDisp);
ASSERT(SUCCEEDED(hr));
if (lpDisp == lpWBDisp )
{
// Top-level Window object, so document has been loaded
TRACE("Web document is finished downloading\n");
}
lpWBDisp->Release();
// }
}