mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
parent
361a2ce4f7
commit
a4bd2449ad
1 changed files with 8 additions and 4 deletions
|
@ -576,10 +576,14 @@ LRESULT CFontsDialog::OnDrawItem(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL&
|
||||||
}
|
}
|
||||||
|
|
||||||
TCHAR szText[LF_FACESIZE];
|
TCHAR szText[LF_FACESIZE];
|
||||||
szText[0] = 0;
|
if ((UINT)ComboBox_GetLBTextLen(hwndItem, pDrawItem->itemID) < _countof(szText))
|
||||||
ComboBox_GetLBText(hwndItem, pDrawItem->itemID, szText);
|
{
|
||||||
rcItem.left += 24;
|
szText[0] = 0;
|
||||||
DrawText(pDrawItem->hDC, szText, -1, &rcItem, DT_LEFT | DT_VCENTER | DT_SINGLELINE);
|
ComboBox_GetLBText(hwndItem, pDrawItem->itemID, szText);
|
||||||
|
|
||||||
|
rcItem.left += 24;
|
||||||
|
DrawText(pDrawItem->hDC, szText, -1, &rcItem, DT_LEFT | DT_VCENTER | DT_SINGLELINE);
|
||||||
|
}
|
||||||
|
|
||||||
if (pDrawItem->itemState & ODS_FOCUS)
|
if (pDrawItem->itemState & ODS_FOCUS)
|
||||||
::DrawFocusRect(pDrawItem->hDC, &pDrawItem->rcItem);
|
::DrawFocusRect(pDrawItem->hDC, &pDrawItem->rcItem);
|
||||||
|
|
Loading…
Reference in a new issue