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
aa93ed5e
Commit
aa93ed5e
authored
May 27, 2011
by
Jacek Caban
Committed by
Alexandre Julliard
May 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLScreen::get_availHeight implementation.
parent
5b9daccc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
htmlscreen.c
dlls/mshtml/htmlscreen.c
+9
-2
dom.c
dlls/mshtml/tests/dom.c
+8
-0
No files found.
dlls/mshtml/htmlscreen.c
View file @
aa93ed5e
...
...
@@ -186,8 +186,15 @@ static HRESULT WINAPI HTMLScreen_get_updateInterval(IHTMLScreen *iface, LONG *p)
static
HRESULT
WINAPI
HTMLScreen_get_availHeight
(
IHTMLScreen
*
iface
,
LONG
*
p
)
{
HTMLScreen
*
This
=
impl_from_IHTMLScreen
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
RECT
work_area
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
!
SystemParametersInfoW
(
SPI_GETWORKAREA
,
0
,
&
work_area
,
0
))
return
E_FAIL
;
*
p
=
work_area
.
bottom
-
work_area
.
top
;
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLScreen_get_availWidth
(
IHTMLScreen
*
iface
,
LONG
*
p
)
...
...
dlls/mshtml/tests/dom.c
View file @
aa93ed5e
...
...
@@ -3920,6 +3920,7 @@ static void test_screen(IHTMLWindow2 *window)
{
IHTMLScreen
*
screen
,
*
screen2
;
IDispatchEx
*
dispex
;
RECT
work_area
;
LONG
l
,
exl
;
HDC
hdc
;
HRESULT
hres
;
...
...
@@ -3965,6 +3966,13 @@ static void test_screen(IHTMLWindow2 *window)
DeleteObject
(
hdc
);
SystemParametersInfoW
(
SPI_GETWORKAREA
,
0
,
&
work_area
,
0
);
l
=
0xdeadbeef
;
hres
=
IHTMLScreen_get_availHeight
(
screen
,
&
l
);
ok
(
hres
==
S_OK
,
"get_availHeight failed: %08x
\n
"
,
hres
);
ok
(
l
==
work_area
.
bottom
-
work_area
.
top
,
"availHeight = %d, expected %d
\n
"
,
l
,
work_area
.
bottom
-
work_area
.
top
);
IHTMLScreen_Release
(
screen
);
}
...
...
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