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(
IFont* iface,
TEXTMETRICOLE* ptm)
{
FIXME("(%p, %p), stub!\n",iface,ptm);
return E_NOTIMPL;
HDC hdcRef;
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