Skip to content

Commit

Permalink
Fix wrong text displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Gates committed Sep 11, 2023
1 parent 45665cc commit 274a6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ListBoxPlus.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class ListBoxOwnerDrawnFixed : public ListBox

rc.right = rc.left;
rc.left = lpDrawItem->rcItem.left + GetSystemMetrics(SM_CXICON) + 4;
DrawText(lpDrawItem->hDC, pData->strRight, lstrlen(pData->strRight), &rc, DT_VCENTER | DT_LEFT | DT_END_ELLIPSIS | DT_SINGLELINE | DT_NOPREFIX);
DrawText(lpDrawItem->hDC, text, cch, &rc, DT_VCENTER | DT_LEFT | DT_END_ELLIPSIS | DT_SINGLELINE | DT_NOPREFIX);

SetTextColor(lpDrawItem->hDC, clrForeground);
SetBkColor(lpDrawItem->hDC, clrBackground);
Expand Down

0 comments on commit 274a6d9

Please sign in to comment.