Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
07053810
Commit
07053810
authored
Apr 14, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 14, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Added Top, Left, Height and Width properties implementation.
parent
80dcc8b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
16 deletions
+64
-16
webbrowser.c
dlls/shdocvw/webbrowser.c
+64
-16
No files found.
dlls/shdocvw/webbrowser.c
View file @
07053810
...
...
@@ -297,57 +297,105 @@ static HRESULT WINAPI WebBrowser_get_Type(IWebBrowser2 *iface, BSTR *Type)
static
HRESULT
WINAPI
WebBrowser_get_Left
(
IWebBrowser2
*
iface
,
long
*
pl
)
{
WebBrowser
*
This
=
WEBBROWSER_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pl
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pl
);
*
pl
=
This
->
pos_rect
.
left
;
return
S_OK
;
}
static
HRESULT
WINAPI
WebBrowser_put_Left
(
IWebBrowser2
*
iface
,
long
Left
)
{
WebBrowser
*
This
=
WEBBROWSER_THIS
(
iface
);
FIXME
(
"(%p)->(%ld)
\n
"
,
This
,
Left
);
return
E_NOTIMPL
;
RECT
rect
;
TRACE
(
"(%p)->(%ld)
\n
"
,
This
,
Left
);
if
(
!
This
->
inplace
)
return
E_UNEXPECTED
;
memcpy
(
&
rect
,
&
This
->
pos_rect
,
sizeof
(
RECT
));
rect
.
left
=
Left
;
return
IOleInPlaceSite_OnPosRectChange
(
This
->
inplace
,
&
rect
);
}
static
HRESULT
WINAPI
WebBrowser_get_Top
(
IWebBrowser2
*
iface
,
long
*
pl
)
{
WebBrowser
*
This
=
WEBBROWSER_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pl
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pl
);
*
pl
=
This
->
pos_rect
.
top
;
return
S_OK
;
}
static
HRESULT
WINAPI
WebBrowser_put_Top
(
IWebBrowser2
*
iface
,
long
Top
)
{
WebBrowser
*
This
=
WEBBROWSER_THIS
(
iface
);
FIXME
(
"(%p)->(%ld)
\n
"
,
This
,
Top
);
return
E_NOTIMPL
;
RECT
rect
;
TRACE
(
"(%p)->(%ld)
\n
"
,
This
,
Top
);
if
(
!
This
->
inplace
)
return
E_UNEXPECTED
;
memcpy
(
&
rect
,
&
This
->
pos_rect
,
sizeof
(
RECT
));
rect
.
top
=
Top
;
return
IOleInPlaceSite_OnPosRectChange
(
This
->
inplace
,
&
rect
);
}
static
HRESULT
WINAPI
WebBrowser_get_Width
(
IWebBrowser2
*
iface
,
long
*
pl
)
{
WebBrowser
*
This
=
WEBBROWSER_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pl
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pl
);
*
pl
=
This
->
pos_rect
.
right
-
This
->
pos_rect
.
left
;
return
S_OK
;
}
static
HRESULT
WINAPI
WebBrowser_put_Width
(
IWebBrowser2
*
iface
,
long
Width
)
{
WebBrowser
*
This
=
WEBBROWSER_THIS
(
iface
);
FIXME
(
"(%p)->(%ld)
\n
"
,
This
,
Width
);
return
E_NOTIMPL
;
RECT
rect
;
TRACE
(
"(%p)->(%ld)
\n
"
,
This
,
Width
);
if
(
!
This
->
inplace
)
return
E_UNEXPECTED
;
memcpy
(
&
rect
,
&
This
->
pos_rect
,
sizeof
(
RECT
));
rect
.
right
=
rect
.
left
+
Width
;
return
IOleInPlaceSite_OnPosRectChange
(
This
->
inplace
,
&
rect
);
}
static
HRESULT
WINAPI
WebBrowser_get_Height
(
IWebBrowser2
*
iface
,
long
*
pl
)
{
WebBrowser
*
This
=
WEBBROWSER_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pl
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pl
);
*
pl
=
This
->
pos_rect
.
bottom
-
This
->
pos_rect
.
top
;
return
S_OK
;
}
static
HRESULT
WINAPI
WebBrowser_put_Height
(
IWebBrowser2
*
iface
,
long
Height
)
{
WebBrowser
*
This
=
WEBBROWSER_THIS
(
iface
);
FIXME
(
"(%p)->(%ld)
\n
"
,
This
,
Height
);
return
E_NOTIMPL
;
RECT
rect
;
TRACE
(
"(%p)->(%ld)
\n
"
,
This
,
Height
);
if
(
!
This
->
inplace
)
return
E_UNEXPECTED
;
memcpy
(
&
rect
,
&
This
->
pos_rect
,
sizeof
(
RECT
));
rect
.
bottom
=
rect
.
top
+
Height
;
return
IOleInPlaceSite_OnPosRectChange
(
This
->
inplace
,
&
rect
);
}
static
HRESULT
WINAPI
WebBrowser_get_LocationName
(
IWebBrowser2
*
iface
,
BSTR
*
LocationName
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment