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
08d85519
Commit
08d85519
authored
Feb 27, 2004
by
Kevin Koltzau
Committed by
Alexandre Julliard
Feb 27, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement GetThemeTextMetrics.
parent
d1d89a64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
8 deletions
+24
-8
draw.c
dlls/uxtheme/draw.c
+24
-8
No files found.
dlls/uxtheme/draw.c
View file @
08d85519
...
...
@@ -930,12 +930,6 @@ HRESULT WINAPI GetThemeTextExtent(HTHEME hTheme, HDC hdc, int iPartId,
DeleteObject
(
hFont
);
}
return
S_OK
;
FIXME
(
"%d %d: stub
\n
"
,
iPartId
,
iStateId
);
if
(
!
hTheme
)
return
E_HANDLE
;
return
ERROR_CALL_NOT_IMPLEMENTED
;
}
/***********************************************************************
...
...
@@ -944,10 +938,32 @@ HRESULT WINAPI GetThemeTextExtent(HTHEME hTheme, HDC hdc, int iPartId,
HRESULT
WINAPI
GetThemeTextMetrics
(
HTHEME
hTheme
,
HDC
hdc
,
int
iPartId
,
int
iStateId
,
TEXTMETRICW
*
ptm
)
{
FIXME
(
"%d %d: stub
\n
"
,
iPartId
,
iStateId
);
HRESULT
hr
;
HFONT
hFont
=
NULL
;
HGDIOBJ
oldFont
=
NULL
;
LOGFONTW
logfont
;
TRACE
(
"(%p, %p, %d, %d)
\n
"
,
hTheme
,
hdc
,
iPartId
,
iStateId
);
if
(
!
hTheme
)
return
E_HANDLE
;
return
ERROR_CALL_NOT_IMPLEMENTED
;
hr
=
GetThemeFont
(
hTheme
,
hdc
,
iPartId
,
iStateId
,
TMT_FONT
,
&
logfont
);
if
(
SUCCEEDED
(
hr
))
{
hFont
=
CreateFontIndirectW
(
&
logfont
);
if
(
!
hFont
)
TRACE
(
"Failed to create font
\n
"
);
}
if
(
hFont
)
oldFont
=
SelectObject
(
hdc
,
hFont
);
if
(
!
GetTextMetricsW
(
hdc
,
ptm
))
hr
=
HRESULT_FROM_WIN32
(
GetLastError
());
if
(
hFont
)
{
SelectObject
(
hdc
,
oldFont
);
DeleteObject
(
hFont
);
}
return
hr
;
}
/***********************************************************************
...
...
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