Commit c2292eef authored by Alex Villacís Lasso's avatar Alex Villacís Lasso Committed by Alexandre Julliard

Implement OleFontImpl_QueryTextMetrics.

parent 1b7e7363
...@@ -1068,8 +1068,16 @@ static HRESULT WINAPI OLEFontImpl_QueryTextMetrics( ...@@ -1068,8 +1068,16 @@ static HRESULT WINAPI OLEFontImpl_QueryTextMetrics(
IFont* iface, IFont* iface,
TEXTMETRICOLE* ptm) TEXTMETRICOLE* ptm)
{ {
FIXME("(%p, %p), stub!\n",iface,ptm); HDC hdcRef;
return E_NOTIMPL; HFONT hOldFont, hNewFont;
hdcRef = GetDC(0);
OLEFontImpl_get_hFont(iface, &hNewFont);
hOldFont = SelectObject(hdcRef, hNewFont);
GetTextMetricsW(hdcRef, ptm);
SelectObject(hdcRef, hOldFont);
ReleaseDC(0, hdcRef);
return S_OK;
} }
/************************************************************************ /************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment