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
4196f83f
Commit
4196f83f
authored
Sep 05, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Sep 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Implement IHTMLBodyElement get/put bgColor.
parent
87873758
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
4 deletions
+33
-4
htmlbody.c
dlls/mshtml/htmlbody.c
+33
-4
No files found.
dlls/mshtml/htmlbody.c
View file @
4196f83f
...
...
@@ -257,15 +257,44 @@ static HRESULT WINAPI HTMLBodyElement_get_noWrap(IHTMLBodyElement *iface, VARIAN
static
HRESULT
WINAPI
HTMLBodyElement_put_bgColor
(
IHTMLBodyElement
*
iface
,
VARIANT
v
)
{
HTMLBodyElement
*
This
=
HTMLBODY_THIS
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
return
E_NOTIMPL
;
nsAString
strColor
;
nsresult
nsres
;
TRACE
(
"(%p)->()
\n
"
,
This
);
if
(
!
variant_to_nscolor
(
&
v
,
&
strColor
))
return
S_OK
;
nsres
=
nsIDOMHTMLBodyElement_SetBgColor
(
This
->
nsbody
,
&
strColor
);
nsAString_Finish
(
&
strColor
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"SetBgColor failed: %08x
\n
"
,
nsres
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLBodyElement_get_bgColor
(
IHTMLBodyElement
*
iface
,
VARIANT
*
p
)
{
HTMLBodyElement
*
This
=
HTMLBODY_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
p
);
return
E_NOTIMPL
;
nsAString
strColor
;
nsresult
nsres
;
const
PRUnichar
*
color
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
nsAString_Init
(
&
strColor
,
NULL
);
nsres
=
nsIDOMHTMLBodyElement_GetBgColor
(
This
->
nsbody
,
&
strColor
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"SetBgColor failed: %08x
\n
"
,
nsres
);
nsAString_GetData
(
&
strColor
,
&
color
);
V_VT
(
p
)
=
VT_BSTR
;
V_BSTR
(
p
)
=
SysAllocString
(
color
);
nsAString_Finish
(
&
strColor
);
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLBodyElement_put_text
(
IHTMLBodyElement
*
iface
,
VARIANT
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