Implement OleFontImpl_QueryTextMetrics.

oldstable
Alex Villacís Lasso 2005-02-18 12:51:23 +00:00 committed by Alexandre Julliard
parent 1b7e736334
commit c2292eefb5
1 changed files with 10 additions and 2 deletions

View File

@ -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;
}
/************************************************************************