Commit 88c26b9c authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

More docs compliant alignment handling for subitems.

parent 8ce90f2f
...@@ -3385,10 +3385,11 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS ...@@ -3385,10 +3385,11 @@ static BOOL LISTVIEW_DrawItem(LISTVIEW_INFO *infoPtr, HDC hdc, INT nItem, INT nS
{ {
COLUMN_INFO *lpColumnInfo = DPA_GetPtr(infoPtr->hdpaColumns, nSubItem); COLUMN_INFO *lpColumnInfo = DPA_GetPtr(infoPtr->hdpaColumns, nSubItem);
if (lpColumnInfo) if (lpColumnInfo)
switch (lpColumnInfo->fmt & LVCFMT_JUSTIFYMASK)
{ {
if (lpColumnInfo->fmt & LVCFMT_LEFT) uFormat |= DT_LEFT; case LVCFMT_RIGHT: uFormat |= DT_RIGHT; break;
else if (lpColumnInfo->fmt & LVCFMT_RIGHT) uFormat |= DT_RIGHT; case LVCFMT_CENTER: uFormat |= DT_CENTER; break;
else if (lpColumnInfo->fmt & LVCFMT_CENTER) uFormat |= DT_CENTER; default: uFormat |= DT_LEFT;
} }
} }
if (!(uFormat & (DT_RIGHT | DT_CENTER))) rcLabel.left += 2; if (!(uFormat & (DT_RIGHT | DT_CENTER))) rcLabel.left += 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment