[PATCH] Listview item rect in report mode

Gerard Patel gerard.patel at nerim.net
Tue Aug 21 13:29:43 CDT 2001


It seems that in report mode the returned rectangle is always the
complete size of the item, never the size of the text (first column)

Tested against the following app : 

http://www.timex.com/downloads/TIDL201.EXE

ChangeLog:

	* dlls/comctl32/listview.c
               rect returned by LISTVIEW_GetItemRect should be total size in
report mode
-------------- next part --------------
Index: dlls/comctl32/listview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/listview.c,v
retrieving revision 1.106
diff -u -r1.106 listview.c
--- dlls/comctl32/listview.c	2001/07/02 01:20:28	1.106
+++ dlls/comctl32/listview.c	2001/08/21 15:15:24
@@ -5584,7 +5584,7 @@
           lprc->top = ptItem.y;
           lprc->bottom = lprc->top + infoPtr->nItemHeight;
 
-          if (infoPtr->dwExStyle & LVS_EX_FULLROWSELECT)
+          if ((infoPtr->dwExStyle & LVS_EX_FULLROWSELECT) || (uView == LVS_REPORT))
 	  {
 	    RECT br;
 	    int nColumnCount = Header_GetItemCount(infoPtr->hwndHeader);
-------------- next part --------------



More information about the wine-patches mailing list