shdocvw: Call EnableModeless and SetStatusText in navigate.

This commit is contained in:
Jacek Caban 2007-03-09 16:56:57 +01:00 committed by Alexandre Julliard
parent dc15020cf5
commit a01a20c090
1 changed files with 10 additions and 4 deletions

View File

@ -450,13 +450,19 @@ static HRESULT navigate(DocHost *This, IMoniker *mon, IBindCtx *bindctx)
if(FAILED(hres)) if(FAILED(hres))
return hres; return hres;
if(FAILED(hres)) { if(This->frame)
IPersistMoniker_Release(persist); IOleInPlaceFrame_EnableModeless(This->frame, FALSE); /* FIXME */
return hres;
}
hres = IPersistMoniker_Load(persist, FALSE, mon, bindctx, 0); hres = IPersistMoniker_Load(persist, FALSE, mon, bindctx, 0);
IPersistMoniker_Release(persist); IPersistMoniker_Release(persist);
if(This->frame) {
static const WCHAR empty[] = {0};
IOleInPlaceFrame_SetStatusText(This->frame, empty); /* FIXME */
IOleInPlaceFrame_EnableModeless(This->frame, TRUE); /* FIXME */
}
if(FAILED(hres)) { if(FAILED(hres)) {
WARN("Load failed: %08x\n", hres); WARN("Load failed: %08x\n", hres);
return hres; return hres;