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
c8c9a5fb
Commit
c8c9a5fb
authored
Nov 17, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added put_backgroundColor implementation.
parent
7c478bf7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
htmlstyle.c
dlls/mshtml/htmlstyle.c
+20
-2
No files found.
dlls/mshtml/htmlstyle.c
View file @
c8c9a5fb
...
...
@@ -46,6 +46,8 @@ typedef struct {
#define HTMLSTYLE(x) ((IHTMLStyle*) &(x)->lpHTMLStyleVtbl);
static
const
WCHAR
attrBackgroundColor
[]
=
{
'b'
,
'a'
,
'c'
,
'k'
,
'g'
,
'r'
,
'o'
,
'u'
,
'n'
,
'd'
,
'-'
,
'c'
,
'o'
,
'l'
,
'o'
,
'r'
,
0
};
static
const
WCHAR
attrFontFamily
[]
=
{
'f'
,
'o'
,
'n'
,
't'
,
'-'
,
'f'
,
'a'
,
'm'
,
'i'
,
'l'
,
'y'
,
0
};
...
...
@@ -276,8 +278,24 @@ static HRESULT WINAPI HTMLStyle_get_background(IHTMLStyle *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLStyle_put_backgroundColor
(
IHTMLStyle
*
iface
,
VARIANT
v
)
{
HTMLStyle
*
This
=
HTMLSTYLE_THIS
(
iface
);
FIXME
(
"(%p)->(v%d)
\n
"
,
This
,
V_VT
(
&
v
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(v%d)
\n
"
,
This
,
V_VT
(
&
v
));
switch
(
V_VT
(
&
v
))
{
case
VT_BSTR
:
return
set_style_attr
(
This
,
attrBackgroundColor
,
V_BSTR
(
&
v
));
case
VT_I4
:
{
WCHAR
value
[
10
];
static
const
WCHAR
format
[]
=
{
'#'
,
'%'
,
'0'
,
'6'
,
'x'
,
0
};
wsprintfW
(
value
,
format
,
V_I4
(
&
v
));
return
set_style_attr
(
This
,
attrBackgroundColor
,
value
);
}
default:
FIXME
(
"unsupported vt %d
\n
"
,
V_VT
(
&
v
));
}
return
S_OK
;
}
static
HRESULT
WINAPI
HTMLStyle_get_backgroundColor
(
IHTMLStyle
*
iface
,
VARIANT
*
p
)
...
...
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