static LRESULT on_timer(HTMLDocumentObj *This) { TRACE("(%p) %x\n", This, This->update); KillTimer(This->hwnd, TIMER_ID); if(!This->update) return 0; if(This->update & UPDATE_UI) { if(This->hostui) IDocHostUIHandler_UpdateUI(This->hostui); if(This->client) { IOleCommandTarget *cmdtrg; HRESULT hres; hres = IOleClientSite_QueryInterface(This->client, &IID_IOleCommandTarget, (void**)&cmdtrg); if(SUCCEEDED(hres)) { IOleCommandTarget_Exec(cmdtrg, NULL, OLECMDID_UPDATECOMMANDS, OLECMDEXECOPT_DONTPROMPTUSER, NULL, NULL); IOleCommandTarget_Release(cmdtrg); } } } update_title(This); This->update = 0; return 0; }
static HRESULT WINAPI DocHostUIHandler_UpdateUI(IDocHostUIHandler2 *iface) { DocHost *This = impl_from_IDocHostUIHandler2(iface); TRACE("(%p)\n", This); if(!This->hostui) return S_FALSE; return IDocHostUIHandler_UpdateUI(This->hostui); }
static HRESULT WINAPI DocHostUIHandler_UpdateUI(IDocHostUIHandler2 *iface) { DocHost *This = DOCHOSTUI_THIS(iface); TRACE("(%p)\n", This); if(!This->hostui) return S_FALSE; return IDocHostUIHandler_UpdateUI(This->hostui); }