Fix onwer-draw REPORT for broken apps.

This commit is contained in:
Dimitrie O. Paun 2002-10-05 18:02:54 +00:00 committed by Alexandre Julliard
parent d2b526ed33
commit f645727afe
1 changed files with 7 additions and 2 deletions

View File

@ -3330,7 +3330,12 @@ static void LISTVIEW_RefreshReport(LISTVIEW_INFO *infoPtr, HDC hdc, DWORD cdmode
OffsetRect(&dis.rcItem, ptOrig.x, 0);
TRACE("item=%s, rcItem=%s\n", debuglvitem_t(&item, TRUE), debugrect(&dis.rcItem));
if (SendMessageW(GetParent(infoPtr->hwndSelf), WM_DRAWITEM, dis.CtlID, (LPARAM)&dis))
SendMessageW(GetParent(infoPtr->hwndSelf), WM_DRAWITEM, dis.CtlID, (LPARAM)&dis);
/* In theory we should do the default drawing if WM_DRAWITEM
* returns FALSE but, in the words of Larry McVoy, in practice
* theory is different than practice, and hence there are
* important apps out there that depend on no default drawing
* in LVS_OWNERDRAWFIXED. So we always skip to the next item. */
continue;
}