static HRESULT WINAPI OleInPlaceObject_ContextSensitiveHelp(IOleInPlaceObject *iface, BOOL fEnterMode) { WebBrowser *This = INPLACEOBJ_THIS(iface); FIXME("(%p)->(%x)\n", This, fEnterMode); return E_NOTIMPL; }
static HRESULT WINAPI OleInPlaceObject_GetWindow(IOleInPlaceObject *iface, HWND* phwnd) { WebBrowser *This = INPLACEOBJ_THIS(iface); TRACE("(%p)->(%p)\n", This, phwnd); *phwnd = This->shell_embedding_hwnd; return S_OK; }
static HRESULT WINAPI OleInPlaceObject_InPlaceDeactivate(IOleInPlaceObject *iface) { WebBrowser *This = INPLACEOBJ_THIS(iface); FIXME("(%p)\n", This); if(This->inplace) { IOleInPlaceSite_Release(This->inplace); This->inplace = NULL; } return S_OK; }
static HRESULT WINAPI OleInPlaceObject_SetObjectRects(IOleInPlaceObject *iface, LPCRECT lprcPosRect, LPCRECT lprcClipRect) { WebBrowser *This = INPLACEOBJ_THIS(iface); TRACE("(%p)->(%p %p)\n", This, lprcPosRect, lprcClipRect); memcpy(&This->pos_rect, lprcPosRect, sizeof(RECT)); if(lprcClipRect) memcpy(&This->clip_rect, lprcClipRect, sizeof(RECT)); if(This->shell_embedding_hwnd) { SetWindowPos(This->shell_embedding_hwnd, NULL, lprcPosRect->left, lprcPosRect->top, lprcPosRect->right-lprcPosRect->left, lprcPosRect->bottom-lprcPosRect->top, SWP_NOZORDER | SWP_NOACTIVATE); } return S_OK; }
static HRESULT WINAPI OleInPlaceObject_ReactivateAndUndo(IOleInPlaceObject *iface) { WebBrowser *This = INPLACEOBJ_THIS(iface); FIXME("(%p)\n", This); return E_NOTIMPL; }
static ULONG WINAPI OleInPlaceObject_Release(IOleInPlaceObject *iface) { WebBrowser *This = INPLACEOBJ_THIS(iface); return IWebBrowser_Release(WEBBROWSER(This)); }
static HRESULT WINAPI OleInPlaceObject_QueryInterface(IOleInPlaceObject *iface, REFIID riid, LPVOID *ppobj) { WebBrowser *This = INPLACEOBJ_THIS(iface); return IWebBrowser_QueryInterface(WEBBROWSER(This), riid, ppobj); }