Skip to main content

 none
IWebBrowser2::Navigate returns E_Fail after reactivating the object inplace for a second time RRS feed

  • Question

  • This method works fine for the first time activating. But returns E_FAIL after a second time activating.

    Activating code:

    	HWND wnd=Get_top_hwnd();
    	CPRect rect=Get_top_relative_rect_client();
    	HRESULT hr=m_ole_object->DoVerb(OLEIVERB_INPLACEACTIVATE,0,this,0, wnd,&rect);
    

    Deactivating code:

    	IOleInPlaceObject* inplace_object;
    	HRESULT hr=m_ole_object->QueryInterface(IID_IOleInPlaceObject,(void**)&inplace_object);
    	hr=inplace_object->InPlaceDeactivate();
    	inplace_object->Release();
    

    Saturday, June 13, 2015 3:11 PM

Answers