ole32: The width of the metafile drawn should be 3 times the icon width in OleMetafilePictFromIconAndLabel.

This commit is contained in:
Rob Shearman 2006-12-01 15:05:38 +00:00 committed by Alexandre Julliard
parent cdb86c6c90
commit d7d3309e0a
1 changed files with 4 additions and 1 deletions

View File

@ -91,8 +91,11 @@ HGLOBAL WINAPI OleMetafilePictFromIconAndLabel(HICON hIcon, LPOLESTR lpszLabel,
GetTextExtentPoint32W(hdcScreen, lpszLabel, lstrlenW(lpszLabel), &text_size);
SelectObject(hdcScreen, screen_old_font);
ReleaseDC(NULL, hdcScreen);
width = 3 * icon_width;
}
width = max(text_size.cx, icon_width);
else
width = icon_width;
SetWindowOrgEx(hdc, 0, 0, NULL);
SetWindowExtEx(hdc, width, label_offset + text_size.cy, NULL);