Commit f83a5278 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

riched20: Retrieve the window from the host.

parent 6c781a1f
......@@ -1195,20 +1195,19 @@ static ULONG STDMETHODCALLTYPE IOleInPlaceSite_fnRelease(IOleInPlaceSite *iface)
return IOleClientSite_Release(&This->IOleClientSite_iface);
}
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnGetWindow(IOleInPlaceSite *iface, HWND *phwnd)
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnGetWindow( IOleInPlaceSite *iface, HWND *window )
{
IOleClientSiteImpl *This = impl_from_IOleInPlaceSite(iface);
TRACE("(%p)->(%p)\n", This, phwnd);
TRACE( "(%p)->(%p)\n", This, window );
if (!This->child.reole)
return CO_E_RELEASED;
if (!phwnd)
return E_INVALIDARG;
if (!window) return E_INVALIDARG;
*phwnd = This->child.reole->editor->hWnd;
return S_OK;
if (!This->child.reole->editor->have_texthost2) return E_NOTIMPL;
return ITextHost2_TxGetWindow( This->child.reole->editor->texthost, window );
}
static HRESULT STDMETHODCALLTYPE IOleInPlaceSite_fnContextSensitiveHelp(IOleInPlaceSite *iface, BOOL fEnterMode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment