ChangeSet ID: 21583 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard@winehq.org 2005/12/01 05:58:33
Modified files: dlls/shdocvw : oleobject.c
Log message: Jacek Caban jacek@codeweavers.com Added SetObjectRects implementation.
Patch: http://cvs.winehq.org/patch.py?id=21583
Old revision New revision Changes Path 1.20 1.21 +12 -2 wine/dlls/shdocvw/oleobject.c
Index: wine/dlls/shdocvw/oleobject.c diff -u -p wine/dlls/shdocvw/oleobject.c:1.20 wine/dlls/shdocvw/oleobject.c:1.21 --- wine/dlls/shdocvw/oleobject.c:1.20 1 Dec 2005 11:58:33 -0000 +++ wine/dlls/shdocvw/oleobject.c 1 Dec 2005 11:58:33 -0000 @@ -454,8 +454,18 @@ static HRESULT WINAPI OleInPlaceObject_S LPCRECT lprcPosRect, LPCRECT lprcClipRect) { WebBrowser *This = INPLACEOBJ_THIS(iface); - FIXME("(%p)->(%p %p)\n", This, lprcPosRect, lprcClipRect); - return E_NOTIMPL; + + TRACE("(%p)->(%p %p)\n", This, lprcPosRect, lprcClipRect); + + if(This->shell_embedding_hwnd) { + SetWindowPos(This->shell_embedding_hwnd, NULL, + lprcPosRect->left, lprcPosRect->top, + lprcPosRect->bottom-lprcPosRect->top, + lprcPosRect->right-lprcPosRect->left, + SWP_NOZORDER | SWP_NOACTIVATE); + } + + return S_OK; }
static HRESULT WINAPI OleInPlaceObject_ReactivateAndUndo(IOleInPlaceObject *iface)