mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
comctl32: Use appropriate font for header drag image.
This commit is contained in:
parent
a4d3e46e65
commit
b7f0901956
1 changed files with 3 additions and 0 deletions
|
@ -979,6 +979,7 @@ HEADER_CreateDragImage (HWND hwnd, WPARAM wParam)
|
|||
HDC hMemoryDC;
|
||||
HDC hDeviceDC;
|
||||
int height, width;
|
||||
HFONT hFont;
|
||||
|
||||
if (wParam < 0 || wParam >= infoPtr->uNumItem)
|
||||
return FALSE;
|
||||
|
@ -996,6 +997,8 @@ HEADER_CreateDragImage (HWND hwnd, WPARAM wParam)
|
|||
ReleaseDC(NULL, hDeviceDC);
|
||||
hOldBitmap = SelectObject(hMemoryDC, hMemory);
|
||||
SetViewportOrgEx(hMemoryDC, -lpItem->rect.left, -lpItem->rect.top, NULL);
|
||||
hFont = infoPtr->hFont ? infoPtr->hFont : GetStockObject(SYSTEM_FONT);
|
||||
SelectObject(hMemoryDC, hFont);
|
||||
|
||||
GetClientRect(hwnd, &rc);
|
||||
lCDFlags = HEADER_SendCtrlCustomDraw(hwnd, CDDS_PREPAINT, hMemoryDC, &rc);
|
||||
|
|
Loading…
Reference in a new issue