Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
dab6474b
Commit
dab6474b
authored
Aug 17, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added get_scrollWidth and get_scrollHeight implementation.
parent
6ee70903
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
4 deletions
+36
-4
htmltextcont.c
dlls/mshtml/htmltextcont.c
+36
-4
No files found.
dlls/mshtml/htmltextcont.c
View file @
dab6474b
...
...
@@ -101,15 +101,47 @@ static HRESULT WINAPI HTMLTextContainer_createControlRange(IHTMLTextContainer *i
static
HRESULT
WINAPI
HTMLTextContainer_get_scrollHeight
(
IHTMLTextContainer
*
iface
,
long
*
p
)
{
HTMLTextContainer
*
This
=
HTMLTEXTCONT_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsIDOMNSHTMLElement
*
nselem
;
PRInt32
height
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsres
=
nsIDOMElement_QueryInterface
(
This
->
element
->
nselem
,
&
IID_nsIDOMNSHTMLElement
,
(
void
**
)
&
nselem
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsIDOMNSHTMLElement_GetScrollHeight
(
nselem
,
&
height
);
nsIDOMNSHTMLElement_Release
(
nselem
);
}
else
{
ERR
(
"Could not get nsIDOMNSHTMLElement interface: %08x
\n
"
,
nsres
);
}
*
p
=
height
;
TRACE
(
"*p = %ld
\n
"
,
*
p
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLTextContainer_get_scrollWidth
(
IHTMLTextContainer
*
iface
,
long
*
p
)
{
HTMLTextContainer
*
This
=
HTMLTEXTCONT_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsIDOMNSHTMLElement
*
nselem
;
PRInt32
width
=
0
;
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsres
=
nsIDOMElement_QueryInterface
(
This
->
element
->
nselem
,
&
IID_nsIDOMNSHTMLElement
,
(
void
**
)
&
nselem
);
if
(
NS_SUCCEEDED
(
nsres
))
{
nsIDOMNSHTMLElement_GetScrollWidth
(
nselem
,
&
width
);
nsIDOMNSHTMLElement_Release
(
nselem
);
}
else
{
ERR
(
"Could not get nsIDOMNSHTMLElement interface: %08x
\n
"
,
nsres
);
}
*
p
=
width
;
TRACE
(
"*p = %ld
\n
"
,
*
p
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLTextContainer_put_scrollTop
(
IHTMLTextContainer
*
iface
,
long
v
)
...
...
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