Listview V0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




ChangeLog
  Mode docs compliant alignment handling for subitems.

Index: dlls/comctl32/listview.c
===================================================================
RCS file: /var/cvs/wine/dlls/comctl32/listview.c,v
retrieving revision 1.262
diff -u -r1.262 listview.c
--- dlls/comctl32/listview.c	19 Oct 2002 19:26:17 -0000	1.262
+++ dlls/comctl32/listview.c	19 Oct 2002 21:48:33 -0000
@@ -3385,11 +3385,12 @@
     {
 	COLUMN_INFO *lpColumnInfo = DPA_GetPtr(infoPtr->hdpaColumns, nSubItem);
 	if (lpColumnInfo)
-	{
-            if (lpColumnInfo->fmt & LVCFMT_LEFT) uFormat |= DT_LEFT;
-            else if (lpColumnInfo->fmt & LVCFMT_RIGHT) uFormat |= DT_RIGHT;
-            else if (lpColumnInfo->fmt & LVCFMT_CENTER) uFormat |= DT_CENTER;
-	}
+	    switch (lpColumnInfo->fmt & LVCFMT_JUSTIFYMASK)
+	    {
+	    case LVCFMT_RIGHT:  uFormat |= DT_RIGHT;  break;
+	    case LVCFMT_CENTER: uFormat |= DT_CENTER; break;
+	    default:            uFormat |= DT_LEFT;
+	    }
     }
     if (!(uFormat & (DT_RIGHT | DT_CENTER))) rcLabel.left += 2;
     DrawTextW(hdc, lvItem.pszText, -1, &rcLabel, uFormat);



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux